Re: what should I do if I got "Stream has outstanding operation" error.

2017-03-01 Thread KC
2017-03-02 2:29 GMT+08:00 KC : > Hi, > > I use g_output_stream_printf() to send command to a server > and use g_data_input_stream_read_line() to read data back. > > Sometime I got error message "Stream has outstanding operation". > What should I do if I detect th

what should I do if I got "Stream has outstanding operation" error.

2017-03-01 Thread KC
eam_printf() ? Thanks KC ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: gdk/gtk+ win32 thread question, please help to explain

2011-11-23 Thread KC
On Wed, Nov 23, 2011 at 4:16 PM, Emmanuel Thomas-Maurin wrote: > On 11/23/2011 07:28 AM, KC wrote: >> On Wed, Nov 23, 2011 at 12:43 PM, Michael Cronenworth >> wrote: >>> On 11/22/2011 10:13 PM, KC wrote: >>>> >>>> So the "Unfortunately ...&q

Re: gdk/gtk+ win32 thread question, please help to explain

2011-11-22 Thread KC
On Wed, Nov 23, 2011 at 12:43 PM, Michael Cronenworth wrote: > On 11/22/2011 10:13 PM, KC wrote: >> >> So the "Unfortunately ..." statement only apply to GDK on WIN32 ? >> It's safe to call GTK+ APIs (if protected by gdk_threads_enter/leave) >> from mul

Re: gdk/gtk+ win32 thread question, please help to explain

2011-11-22 Thread KC
On Wed, Nov 23, 2011 at 11:06 AM, KC wrote: > Hi, > > According to http://developer.gnome.org/gdk/stable/gdk-Threads.html > > ... > Unfortunately the above holds with the X11 backend only. With the Win32 > backend, > GDK calls should not be attempted from multiple threa

gdk/gtk+ win32 thread question, please help to explain

2011-11-22 Thread KC
ight thing ? or just has good luck ? Best Regards, KC ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

how to check the widget is really visible or not ?

2011-06-28 Thread KC
er desktop workspace; use other application to cover the window completely No matter what I do, I still got the window is visible What's wrong with my code ? Thanks a lot. Regards KC ___ gtk-app-devel-list mailing list gtk-app-devel-list

Gtk2 cause SIGTRAP under gdb 6.8

2011-06-19 Thread KC
NDOWS\system32\ntdll.dll If I replace gdb 6.8 by gdb 7.2 (both gdb comes from www.mingw.org), the SIGTRAP disappear ... but all Gtk2 application will be slow down a lot. Anyone has similar issue or solution ? Thanks a lot. Regards KC ___ gtk-app-devel-list ma

Re: how to read Gtk signal document ?

2010-08-10 Thread KC
On Tue, Aug 10, 2010 at 3:35 PM, Tadej Borovšak wrote: > Hi. > >> What is [1] you mentioned ? > > Heh, I forgot to paste a link;) > >  [1] > http://library.gnome.org/devel/gobject/stable/gobject-Signals.html#GSignalFlags Got it, thanks a lot. KC >

Change view of GtkCheckMenuItem without trigger the action

2010-08-09 Thread KC
w/TreeView offer MVC model, but how about other GtkWidget ? Regards KC ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: how to read Gtk signal document ?

2010-08-09 Thread KC
rapper function (for example, > gtk_button_clicked (button) is equivalent to g_signal_emit_by_name > (button, "clicked")). That's useful info. Thanks. KC > > Tadej > > -- > Tadej Borovšak > tadeboro.blogspot.com > tadeb...@gmail.com > tadej.borov...@gma

how to read Gtk signal document ?

2010-08-09 Thread KC
find any official document for them. Specially ... what does "Run First" mean ? All of the above signal are labeled as "Run First", so what's the real order ? Thanks Regards, KC ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: GTK deadlock in gtk_main

2010-08-03 Thread KC
ou. However, event dispatching from the mainloop is still executed within the main GTK+ lock, so callback functions connected to event signals like GtkWidget::button-press-event, do not need thread protection. Regards KC > > Anyway, thanks for your help. > > Regards, > Tomas > >>

Re: How to change color of GtkCellRendererProgress ?

2010-08-01 Thread KC
On Mon, Aug 2, 2010 at 2:46 AM, Jaroslav Šmíd wrote: > You can't. The only way to change this is to modify theme you use. That's bad news to me. I were planned to use it for a simple histogram application but color is required feature ... Thanks anyway. Regards KC > On Sat, J