Re: How to run during "idle" in the main loop ?

2008-09-27 Thread XiuHua Wu
e_add_full, i am wondering how i can associate this function to a particular GTK+ window / dialog ? There seems no parameter in the function to attach it to any window ? thanks Han On Sat, Sep 27, 2008 at 9:59 PM, XiuHua Wu <[EMAIL PROTECTED]> wrote: You can try the g_idle_add or

Re: How to run during "idle" in the main loop ?

2008-09-27 Thread XiuHua Wu
You can try the g_idle_add or g_idle_add_full function. But keep in mind , just read the description of these functions before you use them. Han wrote: Hi, I am writing a new app using GTK+, but I am new to GTK+. I have a question: how do I execute code during the "idle" state of a window or

Re: The menu popup direction

2008-09-24 Thread XiuHua Wu
It works. Thanks very much! Mike Massonnet wrote: Le Thu, 25 Sep 2008 09:00:21 +0800, XiuHua Wu <[EMAIL PROTECTED]> a 茅crit : Yes, I know it can use this function to determine the position of the menu. But if the menu is dynamic, I mean the length is not fixed and can be changed

Re: The menu popup direction

2008-09-24 Thread XiuHua Wu
needs to determine the menu start position just like dropped from up to down. So is there any method to make the menu popup from up to down ?? Or I must do this by myself using the GtkMenuPositionFunc function ?? Mike Massonnet wrote: Le Wed, 24 Sep 2008 16:16:20 +0800, XiuHua Wu <[EM

The menu popup direction

2008-09-24 Thread XiuHua Wu
Hi All: Can GTK+ control the menu popup direction ?? When I create a popup menu and use the function gtk_menu_popup to show the menu, and the menu alway pops from up to down. Is it possible to pop the menu from down to up ?? I try to find solution for this from the Google search and the

Re: About the GTK style

2008-09-04 Thread XiuHua Wu
_color_rc, color.red, color.green, color.blue); gtk_rc_parse_string (rc_temp); gtk_widget_reset_rc_styles (g_text.m_pWidget); g_free (rc_temp); - Original Message - From: "XiuHua Wu" <[EMAIL PROTECT

About the GTK style

2008-09-04 Thread XiuHua Wu
Hi All: Is there anyone knows how to set the GTK styles by codes not via the rc file??I had tried the gtk_rc_add_class_style function, but it didn't work and it is said that "|gtk_rc_add_class_style| is deprecated and should not be used in newly-written code". So is the gtk_rc_add_class_