Why check menu item's response was blocked?

2004-08-11 Thread jacky618 jacky618
Hi, I have a trouble with me when using Gtk+ . In my program, a check menu was used as following: void on_menuitem_1_toggled(GtkCheckMenuItem*ckMnItem, gpointer user_data) { printf("***"); if (GTK_CHECK_MENU_ITEM(ckMnItem)->active == TR

Re: Why check menu item's response was blocked?

2004-08-11 Thread Sven Neumann
Hi, "jacky618 jacky618" <[EMAIL PROTECTED]> writes: > I hope when the check menu item was selected, it will print "***###" > immediately,and "***@@@" when unselected. However, it can not print > immediately after the menu item was clicked.And until the main window > was closed, the strings will

Re: Why check menu item's response was blocked?

2004-08-11 Thread David Necas (Yeti)
On Wed, Aug 11, 2004 at 07:06:35PM +0800, jacky618 jacky618 wrote: >printf("***"); > >if (GTK_CHECK_MENU_ITEM(ckMnItem)->active == TRUE) >printf("###"); >else >printf(""); > > ... > > I hope when the check menu item was selected, it will print "***###" > immediat

Re: Why check menu item's response was blocked?

2004-08-11 Thread Sven Neumann
Hi, "David Necas (Yeti)" <[EMAIL PROTECTED]> writes: > Standard output is line-buffered by default. Either change > it (setvbuf(3)) or, much better, print whole lines ended > with "\n". Or print to stderr (which is by default not buffered) using g_printerr(). Anyway, your GTK+ code should prob

Re: Why check menu item's response was blocked?

2004-08-11 Thread jacky618 jacky618
Thanks, the problem has been resolved. From: Andreas L?g <[EMAIL PROTECTED]> To: jacky618 jacky618 <[EMAIL PROTECTED]> Subject: Re: Why check menu item's response was blocked? Date: Wed, 11 Aug 2004 13:10:36 +0200 (MEST) Hi It might help if you just use fprintf(stderr,"\n"); instead of printf.

Re: Sizing Combo Box

2004-08-11 Thread Jan-Marek Glogowski
Hi There is neither a way in the deprecated GtkCombo nor a way in the current GtkComboBox - if you meant to set the "the maximum allowed length of the contents of the widget" use: gtk_entry_set_max_length via GTK_COMBO(widget)->entry or GTK_BIN(GTK_COMBO_BOX(widget))->child Jan-Marek ___

gtk+ conflicts (unable to remove or upgrade)

2004-08-11 Thread [EMAIL PROTECTED]
Hello, I have deseperatly tried to upgrade the gtk+-1.2.10.25.i386.rpm to gtk-1.2.10-346.i386.rpm, but I always get a series of error mesages. Even when I try an update with the same package (see below). There might be conflicts with other libraries but I don't know what to do. I tried to remove

Set cursor invisible in GtkEntry

2004-08-11 Thread Tongchit Tantikul
Hi, How to set the cursor in GtkEntry to be invisible ? Thanks, -Tongchit __ Do you Yahoo!? Read only the mail you want - Yahoo! Mail SpamGuard. http://promotions.yahoo.com/new_mail ___ gtk-list mailin

Re: gtk+ conflicts (unable to remove or upgrade)

2004-08-11 Thread Tristan Van Berkom
[EMAIL PROTECTED] wrote: Hello, I have deseperatly tried to upgrade the gtk+-1.2.10.25.i386.rpm to gtk-1.2.10-346.i386.rpm, but I always get a series of error mesages. Even when I try an update with the same package (see below). There might be conflicts with other libraries but I don't know wh

Re: Sizing Combo Box

2004-08-11 Thread Owen Taylor
On Wed, 2004-08-11 at 08:02, Jan-Marek Glogowski wrote: > Hi > > There is neither a way in the deprecated GtkCombo nor a way in the current > GtkComboBox - if you meant to set the "the maximum allowed length of the > contents of the widget" use: > > gtk_entry_set_max_length > > via > > GTK_CO

Re: gtk+ conflicts (unable to remove or upgrade)

2004-08-11 Thread Tristan Van Berkom
[EMAIL PROTECTED] wrote: Hello, [...] Can you give me advices ? I am lost and don't know what to do. Cheers, Xavier Droubay. Hi, Are you only concerned with upgrading gtk+-1.2 on your system ? If that is the case, I would firstly obtain the versions of rpms you are about to overwrite in case yo

Learning Gdk

2004-08-11 Thread Richard Plana
Hi, I would like to learn Gdk programming for a couple of simple projects that do not require the full use of gtk2 (no application windows, just drawing a few images onto the screen and mouse interaction). Could someone direct me to resources on the Internet I could use? How did the current Gdk