forked from AuroraMiddleware/gtk
Don't use deprecated button signal functions in clist and combo
This commit is contained in:
parent
87c0397edc
commit
6271cb9672
@ -1401,9 +1401,9 @@ gtk_clist_column_title_passive (GtkCList *clist,
|
||||
clist->column[column].button_passive = TRUE;
|
||||
|
||||
if (button->button_down)
|
||||
gtk_button_released (button);
|
||||
g_signal_emit_by_name (button, "released");
|
||||
if (button->in_button)
|
||||
gtk_button_leave (button);
|
||||
g_signal_emit_by_name (button, "leave");
|
||||
|
||||
gtk_signal_connect (GTK_OBJECT (clist->column[column].button), "event",
|
||||
G_CALLBACK (column_title_passive_func),
|
||||
|
@ -582,7 +582,7 @@ gtk_combo_popdown_list (GtkCombo *combo)
|
||||
if (GTK_BUTTON (combo->button)->in_button)
|
||||
{
|
||||
GTK_BUTTON (combo->button)->in_button = FALSE;
|
||||
gtk_button_released (GTK_BUTTON (combo->button));
|
||||
g_signal_emit_by_name (combo->button, "released");
|
||||
}
|
||||
|
||||
if (GTK_WIDGET_HAS_GRAB (combo->popwin))
|
||||
@ -666,7 +666,7 @@ gtk_combo_popup_button_press (GtkWidget *button,
|
||||
popup_grab_on_window (combo->popwin->window,
|
||||
gtk_get_current_event_time ());
|
||||
|
||||
gtk_button_pressed (GTK_BUTTON (button));
|
||||
g_signal_emit_by_name (button, "depressed");
|
||||
|
||||
gtk_grab_add (combo->popwin);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user