forked from AuroraMiddleware/gtk
Don't use deprecated button signal functions in Gail
This commit is contained in:
parent
b2e629f044
commit
87c0397edc
@ -530,7 +530,7 @@ idle_do_action (gpointer data)
|
||||
/* first a press */
|
||||
|
||||
button->in_button = TRUE;
|
||||
gtk_button_enter (button);
|
||||
g_signal_emit_by_name (button, "enter");
|
||||
/*
|
||||
* Simulate a button press event. calling gtk_button_pressed() does
|
||||
* not get the job done for a GtkOptionMenu.
|
||||
@ -548,11 +548,11 @@ idle_do_action (gpointer data)
|
||||
tmp_event.button.type = GDK_BUTTON_RELEASE;
|
||||
gtk_widget_event (widget, &tmp_event);
|
||||
button->in_button = FALSE;
|
||||
gtk_button_leave (button);
|
||||
g_signal_emit_by_name (button, "leave");
|
||||
break;
|
||||
case 1:
|
||||
button->in_button = TRUE;
|
||||
gtk_button_enter (button);
|
||||
g_signal_emit_by_name (button, "enter");
|
||||
/*
|
||||
* Simulate a button press event. calling gtk_button_pressed() does
|
||||
* not get the job done for a GtkOptionMenu.
|
||||
@ -568,7 +568,7 @@ idle_do_action (gpointer data)
|
||||
break;
|
||||
case 2:
|
||||
button->in_button = FALSE;
|
||||
gtk_button_leave (button);
|
||||
g_signal_emit_by_name (button, "leave");
|
||||
break;
|
||||
default:
|
||||
g_assert_not_reached ();
|
||||
|
@ -249,7 +249,7 @@ idle_do_action (gpointer data)
|
||||
button = GTK_BUTTON (widget);
|
||||
|
||||
button->in_button = TRUE;
|
||||
gtk_button_enter (button);
|
||||
g_signal_emit_by_name (button, "enter");
|
||||
/*
|
||||
* Simulate a button press event. calling gtk_button_pressed() does
|
||||
* not get the job done for a GtkOptionMenu.
|
||||
|
Loading…
Reference in New Issue
Block a user