Re: Focus problem

2008-11-30 Thread Larry Reaves
Hi, I think this patch should do what you want: --- test.orig.c 2008-11-30 20:40:21.0 -0500 +++ test.c 2008-11-30 20:49:57.0 -0500 @@ -78,7 +78,11 @@ { gtk_widget_show_all(popup); focus_window(window); - + g_debug("unfocus

Re: Focus problem

2008-11-30 Thread Perriman
Hi all, I want to create a GTK_WINDOW_POPUP and change the type to GTK_WINDOW_TOPLEVEL. If you have used eclipse, when you are writting you can see a calltip (but the focus is in the editor) and if you press F2, then the calltip window gets the focus and show the decoration.

Re: Focus problem

2008-11-30 Thread Perriman
Hi Michael I paste the code: #include #include static GtkWidget *window; static GtkWidget *view; static GtkWidget *popup; static GtkWidget *popup_view; static gboolean set_focus = FALSE; static void destroy_cb(GtkObject *object,gpointer user_data) { gtk_main_quit (); } static gbool

Re: questions on gtk_entry & gtk_text_view

2008-11-30 Thread Gregory Hosler
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Andrew Cowie wrote: > On Sun, 2008-11-30 at 18:04 +0800, Gregory Hosler wrote: > >> I have a gtk_entry field,and i wish to make use of gtkspell. > > Perhaps try SexySpellEntry from libsexy? > http://www.chipx86.com/w/index.php/Libsexy#SexySpellEntry

Re: questions on gtk_entry & gtk_text_view

2008-11-30 Thread Andrew Cowie
On Sun, 2008-11-30 at 18:04 +0800, Gregory Hosler wrote: > I have a gtk_entry field,and i wish to make use of gtkspell. Perhaps try SexySpellEntry from libsexy? http://www.chipx86.com/w/index.php/Libsexy#SexySpellEntry (it's a shame that the conventional way to add spell checking to a GtkTextVie

questions on gtk_entry & gtk_text_view

2008-11-30 Thread Gregory Hosler
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi all, I have a gtk_entry field,and i wish to make use of gtkspell. gtkspell needs to be attached to a GtkTextView. I am thinking to create a GtkTextView, and set the buffer of the GtkTextView to be the buffer of the entry, for the purposes of mak