[epiphany] Remove deprecated gtk_button_pressed/released usage



commit da765e7da76ec0614499023f4ef9945279a19e0c
Author: Alexandre Mazari <scaroo gmail com>
Date:   Tue Feb 22 22:30:21 2011 +0100

    Remove deprecated gtk_button_pressed/released usage
    
    Remove useless calls to gtk_button_release. Those calls had no effect, since
    they were following calls to gtk_toggle_button_set_active (FALSE) doing
    implicit release.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=628364

 src/bookmarks/ephy-bookmark-properties.c |    1 -
 src/bookmarks/ephy-topic-action.c        |    1 -
 2 files changed, 0 insertions(+), 2 deletions(-)
---
diff --git a/src/bookmarks/ephy-bookmark-properties.c b/src/bookmarks/ephy-bookmark-properties.c
index c566678..537ba88 100644
--- a/src/bookmarks/ephy-bookmark-properties.c
+++ b/src/bookmarks/ephy-bookmark-properties.c
@@ -221,7 +221,6 @@ similar_deactivate_cb (GtkMenuShell *ms,
 		       GtkWidget *button)
 {
 	gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (button), FALSE);
-	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 32d922f..d59d622 100644
--- a/src/bookmarks/ephy-topic-action.c
+++ b/src/bookmarks/ephy-topic-action.c
@@ -284,7 +284,6 @@ 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);
-	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]