gtk_widget_set_sensitive and mouse pointer

2008-07-14 Thread Eric Masson @ Savant Protection
Hi All, I had a small problem that was bugging me for a while, and I figured I'd share the results of my findings. The problem was this: You have several widgets inside of a container and you call gtk_widget_set_sensitive with false to gray out the container + all children. If you leave you

gtk_combo_box with a specialized top line

2008-05-06 Thread Eric Masson @ Savant Protection
Hello, I'm having a hard time trying to phrase my question, let's try an example: 1) I have a drop down entry combo box with two entries Systemwide, and Browse for program 2) If I select Browse for program, it'll bring up a browse window 3) I want to display the selected program name in the entry

Re: A question about threads

2006-12-11 Thread Eric Masson @ Savant Protection
I use g_timeout_add all the time in a Windows/*nix app, and haven't had a problem. You can use a timeout of 0 and it'll update your status bar as soon as the main iteration runs through. Make sure you return false in the timeout function, otherwise your status bar will be continually updated.

libglade win32 glade_xml_new_from_buffer problem

2006-06-06 Thread Eric Masson @ Savant Protection
Hello, I'm trying to embed my .glade xml file in a win32 app. Here's a sample: HRSRC hrc=FindResource(NULL,MAKEINTRESOURCE(IDR_GLADE1),"GLADE"); int size=SizeofResource(NULL,hrc); HGLOBAL gladerc=LoadResource(NULL,hrc); char *ptr=LockResource(gladerc); glade_xml_new_from_buffer(ptr, size, NULL,