notify for first & last signal handler

2007-04-04 Thread Stefan Kost
hi, I would like to know when the first gets connected to my signal and when the last one disconnects. The signal is emmitted from a process that I don't want to run, if nobody listens. There is g_signal_has_handler_pending(), but I don't want to poll that. Anyone aware of a way to do it?

ui manager for menus and tooltips

2007-04-04 Thread Dan McMahill
Hello, Is there a way to enable/disable tooltips for menus created with the ui manager? GtkUIManager *ui; GtkActionGroup *actions; GtkActionEntry *new_entries; ui = gtk_ui_manager_new (); actions = gtk_action_group_new ("Actions"); /* code that fills in new_entries goes here*/ /*

Re: GIOChannel, how to free?

2007-04-04 Thread Iain *
On 4/4/07, Chris Vine <[EMAIL PROTECTED]> wrote: > > > Sure. My question is, how many times (and when) do I have to call it? > > > > Once when you've finished with it > > In the context of his original question, that is not right. His original > question was whether the callback returning FALSE a

Re: GIOChannel, how to free?

2007-04-04 Thread Chris Vine
On Wednesday 04 April 2007 13:49, Iain * wrote: > On 4/4/07, Alberto Mardegan <[EMAIL PROTECTED]> wrote: > > ext Iain * wrote: > > > http://developer.gnome.org/doc/API/2.0/glib/glib-IO-Channels.html#g-io- > > >channel-unref > > > > > > perhaps? > > > > Sure. My question is, how many times (and when

Re: GIOChannel, how to free?

2007-04-04 Thread Alberto Mardegan
ext Iain * wrote: > On 4/4/07, Alberto Mardegan <[EMAIL PROTECTED]> wrote: >> Sure. My question is, how many times (and when) do I have to call it? > > Once when you've finished with it So I may assume that the flow I wrote in my first mail is correct (apart obviously substituting g_object_unref

Re: GIOChannel, how to free?

2007-04-04 Thread Iain *
On 4/4/07, Alberto Mardegan <[EMAIL PROTECTED]> wrote: > ext Iain * wrote: > > http://developer.gnome.org/doc/API/2.0/glib/glib-IO-Channels.html#g-io-channel-unref > > > > perhaps? > > Sure. My question is, how many times (and when) do I have to call it? > Once when you've finished with it iain __

Re: GIOChannel, how to free?

2007-04-04 Thread Alberto Mardegan
ext Iain * wrote: > http://developer.gnome.org/doc/API/2.0/glib/glib-IO-Channels.html#g-io-channel-unref > > > perhaps? Sure. My question is, how many times (and when) do I have to call it? -- http://www.mardy.it <-- Geek in un lingua international! __

Re: GIOChannel, how to free?

2007-04-04 Thread Iain *
On 4/4/07, Alberto Mardegan <[EMAIL PROTECTED]> wrote: > > But according to the docs, g_io_channel_unix_new() creates the channel > with a reference count set to 1, so I guess we need a g_object_unref() > somewhere. http://developer.gnome.org/doc/API/2.0/glib/glib-IO-Channels.html#g-io-channel-unr

GTK application slows down with installation of Java updates

2007-04-04 Thread Sai Korada
Hi, We've developed a GUI using GTK. There is a functionality that uses timer in this GUI. Recently I've clicked on the pop-up that appears at bottom-right of the screens, which says new java updates ready to download. I've installed the updates. After that the application got very slow when we

GIOChannel, how to free?

2007-04-04 Thread Alberto Mardegan
Hi, I hope this is the correct ML to ask something about glib. I'm creating a GIOChannel with g_io_channel_unix_new() and installing it as a source with g_io_add_watch(). Everything works, but I don't know if/how am I suppose to cleanup the things after the file descriptor closes. In the GIOFun