Re: Which signal is emitted when the arrow in GtkComboBoxEntry() is pressed?

2004-11-21 Thread Jan-Marek Glogowski
Hi Egon This is a hack, but I it should work: static void combo_toggle_func( GtkToggleButton *togglebutton, gpointer user_data ) { // Do your "menu" stuff } static void scan_children( GtkWidget *w, gpointer data ) { if( GTK_IS_TOGGLE_BUTTON( w ) ) { g_pri

Re: Which signal is emitted when the arrow in GtkComboBoxEntry() is pressed?

2004-11-21 Thread Egon Andersen
Jan-Marek Glogowski wrote: Hi Egon This is a hack, but I it should work: static void combo_toggle_func( GtkToggleButton *togglebutton, gpointer user_data ) { // Do your "menu" stuff } static void scan_children( GtkWidget *w, gpointer data ) { if( GTK_IS_TOGGLE_BUTTON( w ) )

Re: Accessing GtkComboBoxEntry's toggle button

2004-11-21 Thread Jan-Marek Glogowski
Hi Look for the subject "Which signal is emitted when the arrow in GtkComboBoxEntry() is pressed?" (21. Nov) Jan-Marek ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list

Re: Problem in displaying Dialog

2004-11-21 Thread Jan-Marek Glogowski
Hi GtkWindow *my_app ... GtkWindow *my_about ... gtk_window_set_transient_for( my_about, my_app ); gtk_window_set_position( my_about, GTK_WIN_POS_CENTER_ON_PARENT ); HTH Jan-Marek ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailm

Re: Which signal is emitted when the arrow in GtkComboBoxEntry() is pressed?

2004-11-21 Thread Jan-Marek Glogowski
Just checked the source for 2.4.13 and 2.5.5. Both use a GtkToggleButton... Check the following "scan" function - should print a list of found object types: static void scan_children( GtkWidget *w, gpointer data ) { g_print( "%s\n", G_OBJECT_TYPE_NAME( w ) ); } For me it finds: GtkTogg

Re: columned list

2004-11-21 Thread Jan-Marek Glogowski
Hi The idea is to "emulate" the mouse behaviour. If you have a large list you can scroll with the mouse, without selecting an item. Same with the cursor: you scroll the list (change focus) and then select an item (press space). To move the selection with the focus: gtk_clist_set_selection_mode(

Re: Which signal is emitted when the arrow in GtkComboBoxEntry() is pressed?

2004-11-21 Thread Egon Andersen
Jan-Marek Glogowski wrote: Just checked the source for 2.4.13 and 2.5.5. Both use a GtkToggleButton... Check the following "scan" function - should print a list of found object types: static void scan_children( GtkWidget *w, gpointer data ) { g_print( "%s\n", G_OBJECT_TYPE_NAME( w ) ); } F

Re: Which signal is emitted when the arrow in GtkComboBoxEntry() is pressed?

2004-11-21 Thread Jan-Marek Glogowski
I checked my program with 2.5.5. And had a look at the ComboBox code: the toggle button is created when setting the style, so I think the box must be (at least) realized, maybe even shown. HTH Jan-Marek ___ gtk-list mailing list [EMAIL PROTECTED] http:

Re: Which signal is emitted when the arrow in GtkComboBoxEntry() is pressed?

2004-11-21 Thread Egon Andersen
Jan-Marek Glogowski wrote: I checked my program with 2.5.5. And had a look at the ComboBox code: the toggle button is created when setting the style, so I think the box must be (at least) realized, maybe even shown. Thanks! I just made an extra callback function. The callback function just contains

Re: Which signal is emitted when the arrow in GtkComboBoxEntry() is pressed?

2004-11-21 Thread Owen Taylor
On Sun, 2004-11-21 at 16:46 +0100, Egon Andersen wrote: > Jan-Marek Glogowski wrote: > > I checked my program with 2.5.5. > > > > And had a look at the ComboBox code: the toggle button is created when > > setting the style, so I think the box must be (at least) realized, maybe > > even shown. > >

Re: Which signal is emitted when the arrow in GtkComboBoxEntry() is pressed?

2004-11-21 Thread Jan-Marek Glogowski
Hi I added a patch for a "popup" event to my first reply. I wanted to file a bug report, but didn't really come up with a "good case". There was a similar request a few days ago: "Accessing GtkComboBoxEntry's toggle button". The patch is very simple - just two gtk_signal_emit, a return value to

Re: Which signal is emitted when the arrow in GtkComboBoxEntry() is pressed?

2004-11-21 Thread Egon Andersen
Jan-Marek Glogowski wrote: Hi I added a patch for a "popup" event to my first reply. I wanted to file a bug report, but didn't really come up with a "good case". There was a similar request a few days ago: "Accessing GtkComboBoxEntry's toggle button". The patch is very simple - just two gtk_signal_

GtkToggleButton signals question

2004-11-21 Thread Neil Zanella
Hello, I would like to know whether the following behavior is reliable, since it is not documented in the API reference: When I press a GtkToggleButton (suppose the button goes from being pressed out to pressed in), I notice that the "toggled" signal is emitted _AFTER_ the button becomes pressed

another GtkToggleButton signal question

2004-11-21 Thread Neil Zanella
Hello, Can I also rely on the fact that if a GtkToggleButton is active then a function call to set its active state to TRUE is not going to trigger a signal. In general, is it true that signal handlers are invoked when properties are CHANGED BY A FUNCTION OR USER ACTION, and not when a function ca

Re: GtkToggleButton signals question

2004-11-21 Thread James M. Cape
On Sun, 2004-11-21 at 19:27 -0700, Neil Zanella wrote: > Hello, > > I would like to know whether the following behavior is reliable, since > it is not documented > in the API reference: > > When I press a GtkToggleButton (suppose the button goes from being > pressed out to > pressed in), I notice

Re: another GtkToggleButton signal question

2004-11-21 Thread James M. Cape
On Sun, 2004-11-21 at 19:49 -0700, Neil Zanella wrote: > Hello, > > Can I also rely on the fact that if a GtkToggleButton is active then a > function call > to set its active state to TRUE is not going to trigger a signal. In > general, is it true > that signal handlers are invoked when properties