[Xfce4-commits] <midori:master> Move code to delete selected item from button handler into separate function

Christian Dywan noreply at xfce.org
Wed Dec 30 23:54:02 CET 2009


Updating branch refs/heads/master
         to c91cc72505ace55aa9e0c0b0e729bfb758a9e97c (commit)
       from b98064d0b69f133bd140fb5e52ab7dc81cacc94a (commit)

commit c91cc72505ace55aa9e0c0b0e729bfb758a9e97c
Author: Enrico Tröger <enrico.troeger at uvena.de>
Date:   Wed Dec 30 22:55:26 2009 +0100

    Move code to delete selected item from button handler into separate function

 extensions/cookie-manager/cookie-manager-page.c |    9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/extensions/cookie-manager/cookie-manager-page.c b/extensions/cookie-manager/cookie-manager-page.c
index b5e40e6..c953cae 100644
--- a/extensions/cookie-manager/cookie-manager-page.c
+++ b/extensions/cookie-manager/cookie-manager-page.c
@@ -343,7 +343,7 @@ static void cm_delete_cookie(CookieManagerPage *cmp, GtkTreeModel *model, GtkTre
 }
 
 
-static void cm_button_delete_clicked_cb(GtkToolButton *button, CookieManagerPage *cmp)
+static void cm_delete_item(CookieManagerPage *cmp)
 {
 	GtkTreeIter iter, iter_store, child;
 	GtkTreeModel *model;
@@ -411,6 +411,11 @@ static void cm_button_delete_clicked_cb(GtkToolButton *button, CookieManagerPage
 	}
 }
 
+static void cm_button_delete_clicked_cb(GtkToolButton *button, CookieManagerPage *cmp)
+{
+	cm_delete_item(cmp);
+}
+
 
 static void cm_delete_all_cookies_real(CookieManagerPage *cmp)
 {
@@ -766,7 +771,7 @@ static gboolean cm_tree_key_press_cb(GtkWidget *widget, GdkEventKey *event, Cook
 	if (event->keyval == GDK_Delete && !
 		(event->state & (GDK_SHIFT_MASK | GDK_CONTROL_MASK | GDK_MOD1_MASK)))
 	{
-		cm_button_delete_clicked_cb(NULL, cmp);
+		cm_delete_item(cmp);
 		return TRUE;
 	}
 	return FALSE;



More information about the Xfce4-commits mailing list