2
votes
Accepted
What are the equivalent of these functions in gtk2Hs when migrating from gtk2 to gtk3
I'm not 100% sure, but I would start by checking these:
menuItemActivated
draw
buttonActivated
destroyEvent
The on prefixes have been done away with in favor of a single function named on.
2
votes
Accepted
user pointer in g_signal_connect is not passed correctly
My main suspect is that GdkEventButton event should have been GdkEventButton *event
It is very rare that you pass full structures as parameters in C (and in Gtk)
1
vote
Accepted
Draw a GtkImage with Cairo
You are drawing to the cairo surface, but "nothing knows", so no redraw is triggered.
A random idea to trigger a redraw would be to call gtk_image_clear() and then gtk_image_set_from_surface(...
1
vote
Accepted
Trying to get 'Style' list for a GtkWidget
I tried out your sample code. Actually, it looks like you just have the incorrect macro. Instead of:
GTK_WIDGET_CLASS(btn)
try:
GTK_WIDGET_GET_CLASS(btn)
I tried that and then received no critical ...
1
vote
Concurent Memory Access problem with multithreading in GTK3
Looks like it's time to update a little my q&a about multithreaded GTK applications. As @Gerhardh mentioned, mutex must be taken into account in all threads that access shared resources. Also note ...
1
vote
Accepted
Why does using `g_application_run` create a lag of ~25 seconds?
I didn't find out why it was happening, but I was able to find a solution.
You need to add the following to your .xinitrc or .xsession file:
dbus-update-activation-environment --systemd ...
1
vote
Accepted
How to Scroll a ScrolledWindow with arrow keys in Gtk 3.24.5?
In order to scroll the window with the keyboard, you need to:
Get the scrolled window's vertical or horizontal adjustment with gtk_scrolled_window_get_vadjustment() or ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
gtk3 × 3087gtk × 1229
python × 854
c × 733
python-3.x × 342
pygobject × 312
glade × 215
c++ × 211
pygtk × 205
linux × 139
user-interface × 123
css × 116
vala × 116
gtkmm × 108
cairo × 101
windows × 76
python-2.7 × 71
gnome × 67
gtk2 × 59
glib × 54
gtkmm3 × 54
treeview × 50
gdk × 49
ubuntu × 47
msys2 × 42