Questions tagged [gtkbuilder]

76 questions
3
votes
1 answer

GtkBuilder F# Object reference not set to an instance of an object

I have a problem with making the mainwindow on my simple app run, The error given is that - Object reference not set to an instance of an object. this happens when the app is getting debugged and the error occurs at handler.window1.ShowAll() I did…
Ambush
  • 125
  • 11
3
votes
0 answers

How to merge Gtk+ builder

I'm building a GTK+ gui and I'm trying to use the GtkBuilder to do it. There is a main window in which there is a notebook, a menu and two buttons. I want to fill the notebook with tabs when I click on a button. So I created the main window from a…
Phantom
  • 833
  • 1
  • 9
  • 26
3
votes
1 answer

GTK/C and GtkBuilder to make a single executable

In my project I call gtk_builder_add_from_file function to load an xml file with the ui objects designed with Glade previously. So, I have my binary program and (in the same folder) the xml file. What is the best way to pack all into a single…
RobotMan
  • 488
  • 4
  • 15
3
votes
2 answers

In Gtk, when is it better to use Glade/GtkBuilder than native code?

Glade helped me get started on a project quickly, but I've found it harder to maintain in the long run, and I'm thinking about switching it all to native code. In what circumstances would you choose glade, and when would you use native code?
Matthew
  • 28,056
  • 26
  • 104
  • 170
3
votes
1 answer

After adding "primary toolbar" style class to a gtk.Builder object, gtk.ToolButtons in toolbar are not primary-themed

I've been trying to get my toolbar to look like the standard toolbars in stock Ubuntu apps, and it works to an extent, except the buttons in the toolbar do not have the correct theming applied to them. The text is colored for the default toolbar,…
vivicat
  • 51
  • 6
3
votes
4 answers

ruby glade/gtkbuilder example?

I was using ruby and glade2 to design the user interface for a while in the new version of glade3 i can use gtkbuilder format to generated xml file instead of libglade. is there any example? i searched google but i had no luck!
john
2
votes
1 answer

Set widget properties using GTKBuilder and Python

I am new with GTKBuilder. I have included a GTKBuilder file in my Python script. I want to change a property of a widget. For example, if someone clicks on "More Information", on_more_information function gets triggered. I want to change the Label…
2
votes
1 answer

glade/gtkbuiler export ui to png by code (or any image format)

Is there a way to get a screenshot of a glade/gtkbuilder UI xml by code (preferrably C)?
v1nce
  • 735
  • 9
  • 20
2
votes
1 answer

gtkbuilder interface not available in lablgtk2?

Currently I am using libglade for building gui. However, I would like to use gtkbuilder. I couldn't find gtkbuilder interface in lablgtk2 (OCaml interface to gtk+). Is it not available in lablgtk2?
dips
  • 1,627
  • 14
  • 25
2
votes
2 answers

Center fixed-size GtkDrawingArea widget inside of parent widget

I've got a glade layout going, and in it I have a fixed-size GtkDrawingArea. The current relevant part of the hierarchy is: GtkWindow > GtkVBox > GtkHPaned > GtkViewport > GtkAlignment > GtkFixed > GtkDrawingArea Currently, the GtkFixed widget…
sleepynate
  • 7,926
  • 3
  • 27
  • 38
2
votes
2 answers

How do i get the name (or id) on an widget which was created with Gtk2::Builder?

I am converting an app from using Gtk2::GladeXML to Gtk2::Builder. When getting all widgets with @widgets = $glade_object->get_widget_prefix('') I could get the name (set in Glade) of a widget with $widgets[0]->get_widget_name With Gtk2::Builder…
user615219
  • 31
  • 4
2
votes
1 answer

Signal 'show' not emitted from GUI constructed with GtkBuilder?

I am trying to initialize a GtkEntry widget from GSettings, through a signal handler for the 'show' signal. This works as expected when manually building the user interface, but fails to work when using GtkBuilder. The same applies to other…
user2186577
2
votes
1 answer

How can I set the label of a GtkLinkButton in Glade?

I know how to do this in Python or C but I do not manage to do this in Glade: self.reclamaTaAiciLinkButton =\ self.get_object("reclamaTaAiciLinkButton") self.reclamaTaAiciLinkButton.set_label("RECLAMA TA AICI") This is a screenshot with all the…
silviubogan
  • 3,343
  • 3
  • 31
  • 57
2
votes
2 answers

I'm missing something obvious with glade gtkbuilder and connecting signals. Help?

I make my interface with glade. Works great. I write a tiny little main function which calls gtkbuilder and renders everything in the glade file. Gtk::Main kit(num, opts); // Load the GtkBuilder file and instantiate its…
stu
  • 8,461
  • 18
  • 74
  • 112
2
votes
1 answer

Can I load a gtkbuilder app into a "parent" gtkbuilder frame?

I am using Glade-3 to build a suite of Gtk applications. The applications are supposed to have a common look-and-feel, and we have decided on a common "frame" that all apps will share, that includes a menu bar, toolbar, status-bar(s), a vertical…
aaa90210
  • 11,295
  • 13
  • 51
  • 88