Re: Bringing a GtkWindow to the current desktop with libwnck

2009-07-05 Thread Vivien Malerba
2009/7/3 Jim George jimgeo...@gmail.com Hi all, I'm writing a program that needs to be single-instance. The program will only run on gnome desktop machines. I'm using dbus to ensure this, by having the program try a dbus rpc each time it starts. If there's a running instance, it responds to

Re: Bringing a GtkWindow to the current desktop with libwnck

2009-07-05 Thread Chris Vine
On Sun, 5 Jul 2009 11:51:19 +0200 Vivien Malerba vmale...@gmail.com wrote: 2009/7/3 Jim George jimgeo...@gmail.com Hi all, I'm writing a program that needs to be single-instance. The program will only run on gnome desktop machines. I'm using dbus to ensure this, by having the program

Bringing a GtkWindow to the current desktop with libwnck

2009-07-03 Thread Jim George
Hi all, I'm writing a program that needs to be single-instance. The program will only run on gnome desktop machines. I'm using dbus to ensure this, by having the program try a dbus rpc each time it starts. If there's a running instance, it responds to the rpc by calling gtk_window_present on the

Re: Bringing a GtkWindow to the current desktop with libwnck

2009-07-03 Thread Brian J. Tarricone
On 2009/07/02 23:27, Jim George wrote: I tried to get around this using libwnck. I call wnck_window_get(GDK_WINDOW_XID(main_window-window)), but the WnckWindow returned is always NULL. The X window ID seems to make sense (it's a large integer), so what am I doing wrong? Try this: WnckScreen