gtk/gtkcombo.[ch] "activate" signal can be disabled now

Sat Mar 21 10:39:02 CET 1998 Paolo Molaro <lupus@debian.org>

	* gtk/gtkcombo.[ch] "activate" signal can be disabled now
This commit is contained in:
CET 1998 Paolo Molaro 1998-03-21 09:45:03 +00:00 committed by Paolo Molaro
parent 0328873baf
commit a7960ed953
9 changed files with 45 additions and 1 deletions

View File

@ -1,3 +1,7 @@
Sat Mar 21 10:39:02 CET 1998 Paolo Molaro <lupus@debian.org>
* gtk/gtkcombo.[ch] "activate" signal can be disabled now
Fri Mar 20 20:49:33 1998 Radek Doulik <rodo@aquarius>
* gtk/gtktoolbar.c (gtk_toolbar_insert_element): changed packing

View File

@ -1,3 +1,7 @@
Sat Mar 21 10:39:02 CET 1998 Paolo Molaro <lupus@debian.org>
* gtk/gtkcombo.[ch] "activate" signal can be disabled now
Fri Mar 20 20:49:33 1998 Radek Doulik <rodo@aquarius>
* gtk/gtktoolbar.c (gtk_toolbar_insert_element): changed packing

View File

@ -1,3 +1,7 @@
Sat Mar 21 10:39:02 CET 1998 Paolo Molaro <lupus@debian.org>
* gtk/gtkcombo.[ch] "activate" signal can be disabled now
Fri Mar 20 20:49:33 1998 Radek Doulik <rodo@aquarius>
* gtk/gtktoolbar.c (gtk_toolbar_insert_element): changed packing

View File

@ -1,3 +1,7 @@
Sat Mar 21 10:39:02 CET 1998 Paolo Molaro <lupus@debian.org>
* gtk/gtkcombo.[ch] "activate" signal can be disabled now
Fri Mar 20 20:49:33 1998 Radek Doulik <rodo@aquarius>
* gtk/gtktoolbar.c (gtk_toolbar_insert_element): changed packing

View File

@ -1,3 +1,7 @@
Sat Mar 21 10:39:02 CET 1998 Paolo Molaro <lupus@debian.org>
* gtk/gtkcombo.[ch] "activate" signal can be disabled now
Fri Mar 20 20:49:33 1998 Radek Doulik <rodo@aquarius>
* gtk/gtktoolbar.c (gtk_toolbar_insert_element): changed packing

View File

@ -1,3 +1,7 @@
Sat Mar 21 10:39:02 CET 1998 Paolo Molaro <lupus@debian.org>
* gtk/gtkcombo.[ch] "activate" signal can be disabled now
Fri Mar 20 20:49:33 1998 Radek Doulik <rodo@aquarius>
* gtk/gtktoolbar.c (gtk_toolbar_insert_element): changed packing

View File

@ -1,3 +1,7 @@
Sat Mar 21 10:39:02 CET 1998 Paolo Molaro <lupus@debian.org>
* gtk/gtkcombo.[ch] "activate" signal can be disabled now
Fri Mar 20 20:49:33 1998 Radek Doulik <rodo@aquarius>
* gtk/gtktoolbar.c (gtk_toolbar_insert_element): changed packing

View File

@ -463,7 +463,7 @@ gtk_combo_init (GtkCombo * combo)
(GtkSignalFunc) gtk_combo_entry_key_press, combo);
gtk_signal_connect_after (GTK_OBJECT (combo->entry), "focus_out_event",
(GtkSignalFunc) gtk_combo_entry_focus_out, combo);
gtk_signal_connect (GTK_OBJECT (combo->entry), "activate",
combo->activate_id = gtk_signal_connect (GTK_OBJECT (combo->entry), "activate",
(GtkSignalFunc) gtk_combo_popup_list, combo);
gtk_signal_connect (GTK_OBJECT (combo->button), "clicked",
(GtkSignalFunc) gtk_combo_popup_list, combo);
@ -653,3 +653,15 @@ gtk_combo_size_allocate (GtkWidget *widget,
gtk_widget_size_allocate (combo->button, &button_allocation);
}
}
void
gtk_combo_disable_activate (GtkCombo* combo)
{
g_return_if_fail (combo != NULL);
g_return_if_fail (GTK_IS_COMBO (combo));
if ( combo->activate_id ) {
gtk_signal_disconnect(GTK_OBJECT(combo), combo->activate_id);
combo->activate_id = 0;
}
}

View File

@ -51,6 +51,8 @@ struct _GtkCombo {
guint case_sensitive:1;
guint use_arrows:1;
guint use_arrows_always:1;
guint activate_id;
};
struct _GtkComboClass {
@ -82,6 +84,8 @@ void gtk_combo_set_item_string (GtkCombo* combo,
void gtk_combo_set_popdown_strings (GtkCombo* combo,
GList *strings);
void gtk_combo_disable_activate (GtkCombo* combo);
#ifdef __cplusplus
}
#endif /* __cplusplus */