multithreaded gtk app

2010-01-20 Thread Manu TM
Hi everybody, I'm having troubles debugging a multithreaded gtk app I made. The app creates an animation in the main window by continuously displaying a scrolled pixmap and uses its GUI to modify animation parameters. The animated zone in the main window is updated by g_timeout_add_full(...,

window background transparent

2010-01-20 Thread arno
Hi, I'm trying to set a gtk window transparent. I'm using this gtk hello world example. http://library.gnome.org/devel/gtk-tutorial/2.18/c39.html#SEC-HELLOWORLD And I'm adding gtk_window_set_opacity(GTK_WINDOW(window), 0.5); but window does not get transparent. I'm trying to call

Re: multithreaded gtk app

2010-01-20 Thread jcupitt
Hi, 2010/1/20 Manu TM manutm...@gmail.com: I'm having troubles debugging a multithreaded gtk app I made. Basically, the app looks like this: You need to post a complete small program that people can compile and run. Though from your fragment it doesn't look like you are using threads, just

Re: ComboBox submenus

2010-01-20 Thread Carlos Pereira
Hi Tadej, 1) you were right, titles in combobox submenus can be easily removed calling gtk_cell_layout_set_cell_data_func, as demonstrated in gtk-demo. 2) I also found that the width of submenus can be easily set, with the property width-chars, applied to the cell_renderer. I posted the

Re: Receiving a callback on GDK window destroy

2010-01-20 Thread Tristan Schmelcher
I do get one XID per instance, but that XID is created by Firefox's plugin host code in GtkSocket's internal GdkWindow. So the XID is already mapped to that GdkWindow by the time NPP_SetWindow runs, hence gdk_window_foreign_new() just returns a pointer to that pre-existing GdkWindow, so the

Re: multithreaded gtk app

2010-01-20 Thread Lars Wirzenius
On Wed, 2010-01-20 at 17:05 +0100, Manu TM wrote: gdk_threads_leave; Just in case you posted actual code snippets, not mangled code: the quoted line (repeated in the else branch) is not a function call, and you'll probably get some problems from keeping the lock.