Question about g_main_context_iteration

2010-05-06 Thread silverburgh
>From >http://www.gtk.org/api/2.6/glib/glib-The-Main-Event-Loop.html#g-main-context-iteration, It said g_main_context_iteration Runs a single iteration for the given main loop. Does it mean I have to run 'gtk_main' or ' g_main_loop_new(). ' in my program FIRST? Thank you. ___

How to handle GIO channel when the other side kills the connection

2010-04-19 Thread silverburgh
Hi, I am using GIOChannel in my gtk application. I am able to read/write to GIO channel with a 'client' application, my gtk application serves as a 'server'. But when the 'client application' dies unexpectedly, I see a lot of these errors from my gtk application ('server') terminal: GLib-CRITICA

Re: Question about modal dialog in gtk application

2010-04-15 Thread silverburgh
On Wed, Apr 14, 2010 at 3:39 PM, Nicola Fontana wrote: > Il giorno Wed, 14 Apr 2010 14:27:21 -0700 > silverburgh ha scritto: > >> Can you please help me what happens if I use 'gtk_set_transient_for to >> mark it "modal to only one window"' under the ho

Re: Question about modal dialog in gtk application

2010-04-14 Thread silverburgh
in Firefox). Thank you again. On Sun, Apr 11, 2010 at 9:41 AM, Jim George wrote: > You can use gtk_widget_show to bring up your dialog, and then use > gtk_set_transient_for to mark it "modal to only one window", to get > behavior similar to firefox. > -Jim > > On Sun,

Re: Question about modal dialog in gtk application

2010-04-11 Thread silverburgh
On Sun, Apr 11, 2010 at 11:04 AM, Nicola Fontana wrote: > Il giorno Sun, 11 Apr 2010 10:37:18 -0500 > silverburgh ha scritto: > >> Hi, >> >> In my gtk application, I can create 2 windows. >> But when I open a dialog in one of my window using gtk_dialog_run(),

Re: Question about modal dialog in gtk application

2010-04-11 Thread silverburgh
> Emmanuel Thomas-Maurin > > > > silverburgh wrote: >> >> Hi, >> >> In my gtk application, I can create 2 windows. >> But when I open a dialog in one of my window using gtk_dialog_run(), >> why the other window is frozen? >> How can I code it

Question about modal dialog in gtk application

2010-04-11 Thread silverburgh
Hi, In my gtk application, I can create 2 windows. But when I open a dialog in one of my window using gtk_dialog_run(), why the other window is frozen? How can I code it so that one modal dialog do not freeze the other window? Thank you. ___ gtk-app-dev