Don't use deprecated button signal functions in Gail

This commit is contained in:
Christian Dywan 2009-10-27 22:37:57 +01:00
parent b2e629f044
commit 87c0397edc
2 changed files with 5 additions and 5 deletions

View File

@ -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 ();

View File

@ -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.