Re: GtkHBox child replacement

2012-10-24 Thread Michael Cronenworth
Piotr Sipika wrote: > While updating the text inside the label is easy (via > gtk_label_set_text()), what's the best way to update the icon child, > assuming it's a GtkImage and I have an updated GdkPixbuf for a new icon? You want to call gtk_image_set_from_pixbuf(). Don't forget to call g_object_

GtkHBox child replacement

2012-10-24 Thread Piotr Sipika
Greetings. I'm working on a small application which, in its window, contains a single HBox. The HBox contains two children: an icon and a label. During execution the backend is supposed to update the icon and the text in the label. I can reference the icon and label children of the HBox by calli

Re: Clarification on recent deprecations

2012-10-24 Thread Michael Cronenworth
David Buchan wrote: > Do > I need to change the link to gmodule-2.0? To be honest, I really don't > understand what it's for. Is there a good explanation somewhere? You can always find your pc files in: /usr/lib{64}/pkgconfig Example: /usr/lib64/pkgconfig/gmodule-2.0.pc Inside the file will c

Clarification on recent deprecations

2012-10-24 Thread David Buchan
Based on recent discussion on threads/idles/timeouts, I wonder if I could get confirmation that what I'm doing to remove deprecated stuff is correct. Current Situation: Ubuntu 10.04 libgtk2.0-dev 3.7.0.is.3.6.7-0ubuntu1 Makefile contains: CCFLAGS = `pkg-config --cflags gtk+-2.0 gmodule-2.0`

Re: GTK+ 3.6 threading?

2012-10-24 Thread Emmanuele Bassi
hi; On 24 October 2012 10:17, Dmitrijs Ledkovs wrote: > On 24 October 2012 04:34, Ardhan Madras wrote: > I can see that gdk_threads were recently removed. But there is no > guide on how to move away from those. you should probably read this thread: https://mail.gnome.org/archives/gtk-list/2012

Re: GTK+ 3.6 threading?

2012-10-24 Thread Osmo Antero
Hello, What if the GSourceFunc blocks for a longer time, eg. for 3 seconds time. Does it freeze the GUI because it runs within the main-loop? One possible approach: My audio-recorder uses a message queue (g_async_queue_new()) to receive data from various modules and threads. Ref: http://bazaar.lau

Re: GTK+ 3.6 threading?

2012-10-24 Thread Dmitrijs Ledkovs
On 24 October 2012 04:34, Ardhan Madras wrote: > > Hi, > > > Now that from GTK+ 3.6, thread functions are deprecated. Is there any > > new rules to do threading with the gtk+ 3.6 version? > > Are you talking about Glib? yes, there are many changes since 2.32 > (for now stable version is 2.34)