Questions tagged [gtkbuilder]
76 questions
2
votes
1 answer
C GTK3 program using glade not showing main window
I have created a UI with glade.
When I run the program, it is not giving any errors, but it is not showing the main window either. It just exits.
My full UI file is at https://paste.gnome.org/pfxz888er
The full C program is at…

Jay Aurabind
- 261
- 1
- 4
- 14
2
votes
3 answers
Where can I find the gtk-builder-convert script?
I've built a small GUI app for work that uses some .glade files for pop-up windows. Recently, the ground beneath me was shifted - my environment was upgraded. Newer pyGTK versions require GTKBuilder and .xml files instead of Glade and .glade files…

Marty
- 6,494
- 3
- 37
- 40
2
votes
1 answer
How to connect GtkTextView to GtkMenuItem
I'm making a trivial text editor (as an exercise) in GTK using Glade, GtkBuilder, and C. I have an edit menu with Cut, Copy, and Paste as well as a GtkTextView for the text. GtkTextView automatically binds the cut/copy/paste sequences for itself…

Joey Adams
- 41,996
- 18
- 86
- 115
2
votes
3 answers
Accelerators stop responding when menubar gets hidden
I have a glade-based UI for gtk3, and I set accelerators fields for several menuitems.
I'm not sure what GtkBuilder does exactly behind the scenes when it's loading the glade file (use a global GtkAccelGroup?), but the end result is, when I hide the…

John Smith
- 980
- 1
- 8
- 15
2
votes
2 answers
How do I connect glade signals using GtkBuilder in C#?
In python, I could just do builder.connect_signals(self). It doesn't seem like this method exists in C#, and after looking at the GtkBuilder documentation, it looks like python is the exception, rather than the rule. How would I accomplish the same…

Matthew
- 28,056
- 26
- 104
- 170
1
vote
1 answer
Gtk::Builder fails and immediately aborts when reading a file?
I'm trying to load a very basic Glade file from the same directory. However, Gtk::Builder always fails and aborts with
terminate called after throwing an instance of 'Gtk::BuilderError'
even though I surrounded everything in a try statement.
Just…

LaserDude11
- 47
- 5
1
vote
1 answer
Include console app in GTK app
I'd like to create an application similar to gvim, so that I'll have gtk application with console application included (in my case, it's vim or any other console text editor)
What is the best way to do this?
If there is a way, how can I comunicate…

Jan Vorcak
- 19,261
- 14
- 54
- 90
1
vote
2 answers
Can't generate GtkBuilder.xml in glade
I'm trying to design some window in glade, and I want it to use in my python code using GtkBuilder
I just somehow can't generate GtkBuilder xml
When I save something in Glade I get .glade file
Can you please help me how can I generate GtkBuilder…

Jan Vorcak
- 19,261
- 14
- 54
- 90
1
vote
0 answers
Julia Gtk GtkBuilder: GtkBuilder(buffer=astring) error
I'm running the following code snippet on Windows:
root = Base.source_dir()
s = read(joinpath(root,"dialog.glade"), String)
# b = GtkBuilder(filename=joinpath(root, "dialog.glade")) # works fine
b = GtkBuilder(buffer=s) # error
...get objects,…

John Trinder
- 127
- 4
1
vote
2 answers
How do I apply CSS attributes by object id in GTK4?
I am learning GTK4 from scratch, using GTKBuilder XML to construct objects and CSS to add style information from a file using:
const char cssPath[] = "/a/path/that/is/confirmed/to_be/working.css";
GtkCssProvider * cssProvider =…

rj_code
- 57
- 5
1
vote
1 answer
Unable to find what would be the log domain name for gtkbuilder.c
I would like to redirect messages from g_warning() and similar functions from gtkbuilder.c such as the famous:
(main.exe:39280): Gtk-WARNING **: 01:34:48.787: Could not find signal
ha ndler 'on_window_realize'. Did you compile with…

Edenia
- 2,312
- 1
- 16
- 33
1
vote
1 answer
Handling multiple windows in PyGTK/GtkBuilder
How can I store multiple different windows/dialogs in a single GtkBuilder file and then load these windows in different classes (each class corresponding to a different window)? For instance, currently I'm doing things like:
def __init__(self):
…

dumbmatter
- 9,351
- 7
- 41
- 80
1
vote
2 answers
I added a gtk widget to the main window UI file, but it doesn't show up
I am trying to add a GtkImage to my main window *.ui file, which was made using the GNOME Builder project template.

Bastian
- 620
- 5
- 14
1
vote
1 answer
How do I use Xfce widgets with Pygi?
I've been playing around with pygi recently, trying to put together a mixer plugin for xfce, but when I try to load the GtkBuilder file from python it doesn't recognize the XfceTitledDialog (which I'm trying to use for the configuration dialog).
Is…

Ben
- 11
- 1
1
vote
1 answer
Menu Button in Gtk3 Vala Application
I am trying to make a Gtk3 Application with vala.
I am using a ui-file for Interface design. I can find no information on how to do this GMenu(?) with a ui file. There are lots of examples for coding this in vala.
How can I add this Menu Button in…

Gerald Zehetner
- 596
- 4
- 21