[epiphany] Revert "Do not use deprecated GtkButton APIs"



commit 9cd23731cce78ed64191f41ea32815069600c79e
Author: Xan Lopez <xan gnome org>
Date:   Sat Dec 5 00:19:23 2009 +0200

    Revert "Do not use deprecated GtkButton APIs"
    
    This reverts commit 167e60123c1024d539dc02f4a16f7de994bd1c29.
    
    I misread the documentation about this, the signals do not do the same
    than the old functions.

 src/bookmarks/ephy-bookmark-action.c     |    4 ++--
 src/bookmarks/ephy-bookmark-properties.c |    2 +-
 src/bookmarks/ephy-topic-action.c        |    2 +-
 3 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/bookmarks/ephy-bookmark-action.c b/src/bookmarks/ephy-bookmark-action.c
index 2b40dc4..90af3b1 100644
--- a/src/bookmarks/ephy-bookmark-action.c
+++ b/src/bookmarks/ephy-bookmark-action.c
@@ -431,7 +431,7 @@ button_press_cb (GtkWidget *widget,
 {
 	if (event->button == 2)	
 	{
-		g_signal_emit_by_name (widget, "button-press-event");
+		gtk_button_pressed (GTK_BUTTON (widget));
 	}
 
 	return FALSE;
@@ -444,7 +444,7 @@ button_release_cb (GtkWidget *widget,
 {
 	if (event->button == 2)	
 	{
-		g_signal_emit_by_name (widget, "button-release-event");
+		gtk_button_released (GTK_BUTTON (widget));
 	}
 
 	return FALSE;
diff --git a/src/bookmarks/ephy-bookmark-properties.c b/src/bookmarks/ephy-bookmark-properties.c
index 76ce001..ed8f9b2 100644
--- a/src/bookmarks/ephy-bookmark-properties.c
+++ b/src/bookmarks/ephy-bookmark-properties.c
@@ -222,7 +222,7 @@ similar_deactivate_cb (GtkMenuShell *ms,
 		       GtkWidget *button)
 {
 	gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (button), FALSE);
-	g_signal_emit_by_name (button, "button-release-event");
+	gtk_button_released (GTK_BUTTON (button));
 }
 
 static void
diff --git a/src/bookmarks/ephy-topic-action.c b/src/bookmarks/ephy-topic-action.c
index d812a77..32d922f 100644
--- a/src/bookmarks/ephy-topic-action.c
+++ b/src/bookmarks/ephy-topic-action.c
@@ -284,7 +284,7 @@ button_deactivate_cb (GtkMenuShell *ms,
 	GtkWidget *window = gtk_widget_get_ancestor (button, GTK_TYPE_WINDOW);
 
 	gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (button), FALSE);
-	g_signal_emit_by_name (button, "button-release-event");
+	gtk_button_released (GTK_BUTTON (button));
 
 	g_object_set_data (G_OBJECT (window),
 			   "active-topic-action-button", NULL);



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