Undefined reference to g_file_load_bytes()

2018-05-31 Thread pspgen
During my application programming, I had to use the GIO function g_file_load_bytes(). I have my GTK+ installation installed from MSYS (the new method) so I obviously have GIO. I previously even used g_file_load_contents() without problems, but now, it weirdly doesn't find definition for `g_fil

This takes 30 secs to render

2018-05-31 Thread Tarie Nosworthy via gtk-app-devel-list
Is there any way to make this better? The image loaded is 3.3MB PNG int nWidth = gdk_pixbuf_get_width(pImage), nHeight = gdk_pixbuf_get_height(pImage); gtk_widget_set_size_request(widget, nWidth, nHeight); gdk_cairo_set_source_pixbuf(cr, pImage,

Can a GtkApplicationWindow have both a menubar AND a toolbar?

2018-05-31 Thread Tarie Nosworthy via gtk-app-devel-list
___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Link Gtk.ListStore to the real data

2018-05-31 Thread c.buhtz
I am looking for an elegant and pythonic way to connect the model of a Gtk.ListStore (the content container for a Gtk.TreeView) to the real data. Thinking the C-way I would store a pointer as a hidden column linking to the data structure in each entry of Gtk.ListStore. But I don't see a way to do

How to adapt TopLevel widget size to the subWidget

2018-05-31 Thread Pencc
Hello, everyone!         window is the toplevel widget while label is the subWidget, when I change the size of label by gtk_widget_set_size_request, if new label is larger than the old label, toplevel will be larger, but why that not works the other way  around ? [1] #include     GtkWidget *wi