Questions tagged [gtkbuilder]
76 questions
1
vote
1 answer
gtk+ Gtkbuilder && OOP principles
I got a pretty awkward feeling after messing with GtkBuilder + *.ui-files for a few weeks now.
Either I doom the OOP principles to get a real advantage from the usage of GtkBuilder and *.ui files OR if I do not want to drop the OOP design, I get so…

drahnr
- 6,782
- 5
- 48
- 75
1
vote
0 answers
GResource, GtkBuilder and gettext translations
I'm using Meson (with glib gettext preset) to bundle GtkBuilder files in a GResource file, but I can't figure how to get gettext to recognize the translatable strings.
I've marked the strings with the translatable attribute, put the domain attribute…

andy.holmes
- 3,383
- 17
- 28
1
vote
1 answer
How to populate a GtkMenu with some GtkMenuItem and set its parent in Glade?
In a Gtk.Toolbar I have a Gtk.MenuToolButton with an arrow to which I want to associate a Gtk.Menu, preferably built in Glade.
My code was this:
self.menuToolButtonCalculate.set_menu(self.get_object("menuCalculate"))
where…

silviubogan
- 3,343
- 3
- 31
- 57
1
vote
1 answer
Changing a GtkMenuItem label in a menubar generated by GtkBuilder
I have the following XML code that I use to generate a GtkMenuBar by means of GtkBuilder:

spyrjandi og svarandi
- 123
- 4
1
vote
2 answers
GtkMenuItem - Empty space on the sides
I recently read that GtkImageMenuItem got deprecated and thus tried to create something similar following the advice of the GTK+ documentation of creating a GtkBox inside the GtkMenuItem and putting a GtkImage and a GtkLabel inside of that box.
It…

Kuklin István
- 315
- 3
- 14
1
vote
2 answers
UI files doesn't show its widgets to gtk_builder_get_objects
I have this UI file edited with Glade 3.18.3. I open the UI in the (C) gtk program (no problem here, no error messages).
Then I tried to get the widget references out of the builder object using gtk_builder_get_object, but could not find any.
I read…

jcoppens
- 5,306
- 6
- 27
- 47
1
vote
1 answer
MultiWindow error Glade, Gtk and Python
I am making an interface where you have to be logged to enter. So at sign in window I put a button to open a modal window (about dialog). It works fine, but just once, I mean: this window can be opened and closed, but if you try again, it fails. I…

horro
- 1,262
- 3
- 20
- 37
1
vote
1 answer
How do I programmatically add a widget to a container created from GtkBuilder?
I've created a window that has some containers and widgets in it, and I want to add a new widget dynamically at run-time to one of the Vboxes in this window. So I have this code, which brings up the window:
gtk_builder_add_from_file( g_builder,…

Warner Young
- 111
- 1
- 5
1
vote
1 answer
Why does Gtk2::Builder mix up my signals?
I'm having this perl code:
#!/usr/bin/perl
use warnings;
use strict;
use Data::Dumper;
use Gtk2 '-init';
my $data;
my $builder_file = "lists.glade";
my $builder = Gtk2::Builder->new();
$builder->add_from_file( $builder_file )
or die…

XoR
- 2,556
- 4
- 17
- 15
1
vote
3 answers
Why does my GMenu not work anymore when I use a composite template?
I am trying to get GMenu and composite templates to work together.
gtk-mumble.vala
using GLib;
using Gtk;
namespace GtkMumble {
[GtkTemplate (ui = "/net/antiochus/gtk-mumble/gtk_mumble.ui")]
public class MainWindow : Gtk.ApplicationWindow {
…

Jens Mühlenhoff
- 14,565
- 6
- 56
- 113
1
vote
1 answer
How can I access a ListStore GtkBuilder
I'm using the following code to load my gui's elements:
import Graphics.UI.Gtk
main = do
initGUI
-- loading
builder <- builderNew
builderAddFromFile builder "gui.glade"
window <- builderGetObject builder castToWindow "window"
…

mcjohnalds45
- 667
- 1
- 8
- 16
1
vote
1 answer
Glade and static linking
If I'm statically linking a GTK+ program under FreeBSD 8, gtk_builder_add_from_file() suddenly returns with an error:
Invalid object type `GtkWindow'
How to fix that? With dynamic linking everything works fine.
Update: linking is done by:
cc -o…

Alexander Gromnitsky
- 2,949
- 2
- 33
- 38
1
vote
3 answers
Python3 crossplatform GUI toolkit
I need a OSX and GNU/Linux compatible GUI toolkit which works with python3.
I tried GTK3 with GObject introspection, but it was hard to be deployed on OSX.
Is there something like gtk builder compatible which will run on OSX ?
What my requirements…

Damjan Dimitrioski
- 679
- 2
- 9
- 20
0
votes
1 answer
GTK builder: Empty dialog window after WM-kill
I used glade to build my GUI.
Now i have a transient top level dialog window that pops up. If i kill this dialog window with a window manager shortcut, it gets deleted/destroyed. I catch those signals an do a dialog_window.hide() but if i reopen the…

chuchu
- 3
- 3
0
votes
0 answers
How can I change the size of a Widget in a GtkGrid cell
In order to get familiar with GTK I wrote my first simple application that shows three text entries and a Quit button. I use GtkBuilder to construct my UI.
Now, I'm wondering of how to change the size (width) of the textEntry widgets. The grid is…

Ramses
- 652
- 2
- 8
- 30