Skip to main content
Filter by
Sorted by
Tagged with
0 votes
1 answer
206 views

I am trying pass argv value to label of buttons, but it's working unpredictable way in the following program, use gtk_init(); for argv and argc, but incrementing working wrong way, address doesn't ...
igor's user avatar
  • 1
1 vote
1 answer
260 views

I'm building an app using the Relm4 SimpleComponent / Component macro. It works great. But I don't understand how can I refer to the generated GTK widgets later? My understanding is that the ...
user2297996's user avatar
  • 1,624
3 votes
3 answers
271 views

I'm trying to get the state of a gtk.CheckButton using Action since gtk docs says: When the code must keep track of the state of a group of radio buttons, it is recommended to keep track of such ...
raven's user avatar
  • 1,213
0 votes
1 answer
529 views

I'm trying to display something each time the user inserts something in an Entry widget. For instance, I have the following callback: void entry_text_inserted (GtkEditable* self, gchar* text, gint ...
Ahmad B's user avatar
  • 117
0 votes
0 answers
62 views

I have added a simple ComboBoxText widget to my programm, but I am unable to select any of the drop-down options with my mouse by clicking on the drop-down. I can however use my keyboard arrows and ...
Alberto García's user avatar
1 vote
1 answer
2k views

Google says use ColumnView, because TreeView is deprecated. But how to create a UI like this with ColumnView of GTK4? Gnome Files seems to be able to do that, but I am not sure if they are using ...
Damn Vegetables's user avatar
1 vote
1 answer
135 views

I am learning GTK4 and Python. While playing round with the Gtk.StackSidebar class, I came across this strange behavior that I cannot seem to figure out. I want my sidebar on the left, and my content ...
Vild's user avatar
  • 13
0 votes
1 answer
125 views

I want to perform a render on click event on the GLArea. The problem is that when I call the drawing method from the event handler, the "canvas" does not change. There is the my_draw_func() ...
RedGradient's user avatar
2 votes
1 answer
171 views

I am building a GUI Application using GTK4.8.3. I want two ScrolledWindows where one (containing a ListBox) can expand horizontally and the other (containing a Button) cannot. More precisely, I want ...
Samuel Jenks's user avatar
  • 1,201
0 votes
1 answer
227 views

This is the relevant part of the code: btn1 = gtk_button_new_with_label("one"); gtk_grid_attach (GTK_GRID (grid_ptr), btn1, 0, 1, 1, 1); gtk_widget_set_name ( btn1, "btn1"); ...
jediapingveno's user avatar
6 votes
1 answer
2k views

I would like to add onclick event handling to a GtkBox widget. I see that only GtkButton has clicked signal, so I feel like the only option is to attach a GtkEventController to my widget. As per the ...
mltm's user avatar
  • 605
1 vote
0 answers
21 views

I was trying to install gtkmm-4.0 and since my distro only ships gtkmm-3.0 I decided to build myself. Installed all the dependencies from the official gtkmm installation website and gave it a go. ...
Tony's user avatar
  • 111
0 votes
1 answer
34 views

I am developing a Python program with a GTK4 GUI and would like to use the pie chart which is also displayed in Nautilus when copying files etc. Can anyone tell me if this is a standard GUI element ...
Sebastian Jäpel's user avatar
0 votes
1 answer
100 views

I'm trying to create a layout with an text view and in the 2nd column 4 buttons aligned vertically. I tried reading documentation but the window isn't rendered or button stay aligned horizontally. <...
Gastone Krankenwagen's user avatar
0 votes
0 answers
87 views

I am facing an issue in gtk 4 with MSYS2 and c language in VS-code, it shows an error of : gtk/gtk.h: No such file or directory #include <gtk/gtk.h> int main (int argc, char **argv) { ...
Hiren Meghnani's user avatar
4 votes
1 answer
2k views

I'm learning GTK4 and working with wayland (hyprland) on linux. When I try to retrieve the default display, my python code returns an X11Display. I figured out that the GDK_BACKEND environment ...
David's user avatar
  • 53
1 vote
0 answers
432 views

I'm trying to write a GTK4 app using python with an embedded media player to use for streaming. Here's what I have now: def async_run(func, *args): thread = Thread(target=func, args=args) ...
pi_squared's user avatar
1 vote
1 answer
311 views

I have a bunch of GTK buttons in a GTK Flowbox, and am using the CSS border-radius property to make them round and background-image for the background. Unfortunately, they then appear as ovals, as in ...
Cheetaiean's user avatar
0 votes
2 answers
329 views

The following code creates a grid of cat icons, using the cat.jpg file below. static void make_toggles(GtkWidget * window) { GtkWidget *stop_grid, vpaned; int i; stop_grid = gtk_grid_new();...
Cheetaiean's user avatar
0 votes
0 answers
293 views

Currently, I'm trying to use GtkPopoverMenuBar widget in a GTK4 app in C, based on the tutorial listed here: https://toshiocp.github.io/Gtk4-tutorial/sec17.html Here's the current code I have: #...
Platinum Lucario's user avatar
0 votes
1 answer
124 views

I tried to build G4Music (https://gitlab.gnome.org/neithern/g4music) following its instructions but I got many syntax errors. As you can see GTK-4.0 is marked as not found. However I have installed ...
jplc's user avatar
  • 362
1 vote
0 answers
111 views

In a Rust GTK4 application, an event handler needs to send a message to its root, which is a subclass of ApplicationWindow. I can get the root in the handler by "button.property("root")....
russell's user avatar
  • 706
0 votes
1 answer
349 views

i am trying to 'update' lgi (lua gtk binding) examples, which are for gtk3 purpose is to draw geocentric view of solar system, in 2d, for start app has top row for input, below are 2 x 2 panned widget ...
aum hren's user avatar
0 votes
1 answer
72 views

Simple questionL in a program using GTK4, how can I set the limits for a spin button in the template file? The doc does not list a property or attribute that seems related. There is a method set_range(...
russell's user avatar
  • 706
2 votes
1 answer
729 views

When I was using gtk3 I was able to access a ListBox's children this way: let list_box = ListBox::new(); let label = Label::new(Some("Label 1")); list_box.append(&label); for row in ...
wyc's user avatar
  • 55.7k

1
4
5
6 7 8