tazweb diff src/tazweb.c @ rev 202

Small clean to tazweb.c and more update to NG
author Christophe Lincoln <pankso@slitaz.org>
date Sat Mar 18 14:45:40 2017 +0100 (2017-03-18)
parents 8bc829832719
children d05a5c35a71e
line diff
     1.1 --- a/src/tazweb.c	Sat Mar 18 13:49:56 2017 +0100
     1.2 +++ b/src/tazweb.c	Sat Mar 18 14:45:40 2017 +0100
     1.3 @@ -172,7 +172,7 @@
     1.4   */
     1.5  
     1.6  static void
     1.7 -bookmarks_edit_cb(GtkWidget* widget, WebKitWebView* webview)
     1.8 +bookmarks_edit_cb()
     1.9  {
    1.10  	system("/usr/lib/tazweb/helper.sh bookmarks_handler &");
    1.11  }
    1.12 @@ -300,7 +300,7 @@
    1.13  }
    1.14  
    1.15  static void
    1.16 -cookies_clean_cb(GtkWidget* widget, WebKitWebView* webview)
    1.17 +cookies_clean_cb()
    1.18  {
    1.19  	system("/usr/lib/tazweb/helper.sh clean_cookies");
    1.20  }
    1.21 @@ -335,7 +335,7 @@
    1.22  		gtk_image_menu_item_set_image(GTK_IMAGE_MENU_ITEM(item),
    1.23  		gtk_image_new_from_stock(GTK_STOCK_EDIT, GTK_ICON_SIZE_MENU));
    1.24  		gtk_menu_shell_append(GTK_MENU_SHELL(menu), item);
    1.25 -		g_signal_connect(item, "activate", G_CALLBACK(bookmarks_edit_cb), webview);
    1.26 +		g_signal_connect(item, "activate", G_CALLBACK(bookmarks_edit_cb), NULL);
    1.27  
    1.28  		/* Separator */
    1.29  		item = gtk_separator_menu_item_new();
    1.30 @@ -372,7 +372,7 @@
    1.31  		gtk_image_menu_item_set_image(GTK_IMAGE_MENU_ITEM(item),
    1.32  		gtk_image_new_from_stock(GTK_STOCK_REMOVE, GTK_ICON_SIZE_MENU));
    1.33  		gtk_menu_shell_append(GTK_MENU_SHELL(menu), item);
    1.34 -		g_signal_connect(item, "activate", G_CALLBACK(cookies_clean_cb), webview);
    1.35 +		g_signal_connect(item, "activate", G_CALLBACK(cookies_clean_cb), NULL);
    1.36  
    1.37  		/* Separator */
    1.38  		item = gtk_separator_menu_item_new();