Select root folder in GtkfileChooser

2010-04-08 Thread Pierre Wieser
Hi In Nautilus-Actions, I need to let my users select folders, including root folder ('/'). In a GtkFileChooserDialog, there is obviously no way to select the root folder by clicking on it, because it has no parent. But when I enter "/" in the location entry, and click on Open button, I get the

Re: can't send GdkEventKey to notepad++?

2010-04-08 Thread Todong Ma
Thank you guys! I think I should use Windows API. ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: can't send GdkEventKey to notepad++?

2010-04-08 Thread Tor Lillqvist
> You may need to drop down to the Win32 APIs for that That is true. And even then I am not sure if what you try to do is possible or not. If it is, it would be a security risk I think, so I wouldn't be surprised if it is impossible at least on modern Windows versions. --tml _

Re: can't send GdkEventKey to notepad++?

2010-04-08 Thread Brian J. Tarricone
On 04/07/2010 11:21 AM, Todong Ma wrote: > Hi,folks! > > I'm tring to write a program to send GdkEventKey to other program on > windows,such as notepad++. > and following is my code: > > HWND hwnd; > > void key_press(GtkWidget *widget,GdkEventKey *event,gpointer data){ > > g_print("%d %d %d