Re: menuitem activate

2007-05-23 Thread danielg Posting
> You have to find you what dv is, where is is constructed and > how to pass it where you set up the notify handler. DirView * dirview_create (const gchar *root_dir, GtkWidget *parent_win, GimvThumbWin *tw) { (...) dnotify is being slowly overtaken by inotify but

Re: menuitem activate

2007-05-23 Thread danielg Posting
> If you know what action you want to invoke, you can also > call the callback function of the item directly (or some > other function that performs the requested action), can't > you? I guess it'll be shorter to start from the beginning. I'm messing around with GimageView 0.2.27. I want it to a

Re: menuitem activate

2007-05-23 Thread danielg Posting
On Wed, 23 May 2007 17:13:56 +0200, Jonathan Winterflood wrote > Not really GTK-related, but shouldn't the compiler have complained loudly > about passing a char* instead of a GtkMenuItem* ? > Or are you using a binding of gtk to a language that doesn't check > types at compile-time? I'm just try

Re: menuitem activate

2007-05-23 Thread danielg Posting
> http://developer.gnome.org/doc/API/2.0/gtk/GtkMenuItem.html#gtk-menu- > item-activate > > It has argument of GtkMenuItem* type, i.e. you pass the menu > item object. No path, name, or anything. The item itself > (that's menuitem here). > I'm with you on everything you said and I feel like a

Re: menuitem activate

2007-05-23 Thread danielg Posting
On Wed, 23 May 2007 16:49:50 +0200, David Neèas (Yeti) wrote > On Wed, May 23, 2007 at 10:36:13AM -0400, danielg RHCE wrote: > > > Why don't you just call the callback function which is connected to the > > > signal? > > > Or use g_signal_emit() or g_signal_emit_by_name() to "emulate" a > > > clic