[gtk+] Don't use deprecated button signal functions in Gail



commit 87c0397edc794cd30454d88af6fb0513cb72dca1
Author: Christian Dywan <christian twotoasts de>
Date:   Tue Oct 27 22:37:57 2009 +0100

    Don't use deprecated button signal functions in Gail

 modules/other/gail/gailbutton.c     |    8 ++++----
 modules/other/gail/gailoptionmenu.c |    2 +-
 2 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/modules/other/gail/gailbutton.c b/modules/other/gail/gailbutton.c
index 998ec29..6fac18a 100644
--- a/modules/other/gail/gailbutton.c
+++ b/modules/other/gail/gailbutton.c
@@ -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 ();
diff --git a/modules/other/gail/gailoptionmenu.c b/modules/other/gail/gailoptionmenu.c
index 07d588c..230ec3e 100644
--- a/modules/other/gail/gailoptionmenu.c
+++ b/modules/other/gail/gailoptionmenu.c
@@ -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.  



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]