Branch: refs/heads/master Author: Colomban Wendling ban@herbesfolles.org Committer: Colomban Wendling ban@herbesfolles.org Date: Sun, 02 Dec 2012 16:52:13 UTC Commit: 62946e0bda18ef58c9d5f031ee8e823676f13675 https://github.com/geany/geany-plugins/commit/62946e0bda18ef58c9d5f031ee8e82...
Log Message: ----------- WebHelper: Don't use deprecated GTK API
Modified Paths: -------------- webhelper/src/gwh-browser.c webhelper/src/gwh-plugin.c
Modified: webhelper/src/gwh-browser.c 14 files changed, 7 insertions(+), 7 deletions(-) =================================================================== @@ -515,7 +515,7 @@ static void inspector_set_detached (GwhBrowser *self, #define ADD_SEPARATOR(menu) \ item = gtk_separator_menu_item_new (); \ gtk_widget_show (item); \ - gtk_menu_append (menu, item) + gtk_menu_shell_append (GTK_MENU_SHELL (menu), item)
ADD_SEPARATOR (menu);
@@ -524,23 +524,23 @@ static void inspector_set_detached (GwhBrowser *self, item = gtk_menu_item_new_with_mnemonic (_("_Zoom")); gtk_widget_show (item); gtk_menu_item_set_submenu (GTK_MENU_ITEM (item), submenu); - gtk_menu_append (menu, item); + gtk_menu_shell_append (GTK_MENU_SHELL (menu), item); /* zoom in */ item = gtk_image_menu_item_new_from_stock (GTK_STOCK_ZOOM_IN, NULL); g_signal_connect_swapped (item, "activate", G_CALLBACK (webkit_web_view_zoom_in), view); - gtk_menu_append (GTK_MENU (submenu), item); + gtk_menu_shell_append (GTK_MENU_SHELL (submenu), item); /* zoom out */ item = gtk_image_menu_item_new_from_stock (GTK_STOCK_ZOOM_OUT, NULL); g_signal_connect_swapped (item, "activate", G_CALLBACK (webkit_web_view_zoom_out), view); - gtk_menu_append (GTK_MENU (submenu), item); + gtk_menu_shell_append (GTK_MENU_SHELL (submenu), item); /* zoom 1:1 */ ADD_SEPARATOR (submenu); item = gtk_image_menu_item_new_from_stock (GTK_STOCK_ZOOM_100, NULL); g_signal_connect (item, "activate", G_CALLBACK (on_item_zoom_100_activate), self); - gtk_menu_append (GTK_MENU (submenu), item); + gtk_menu_shell_append (GTK_MENU_SHELL (submenu), item); /* full content zoom */ ADD_SEPARATOR (submenu); item = gtk_check_menu_item_new_with_mnemonic (_("Full-_content zoom")); @@ -548,7 +548,7 @@ static void inspector_set_detached (GwhBrowser *self, webkit_web_view_get_full_content_zoom (view)); g_signal_connect (item, "activate", G_CALLBACK (on_item_full_content_zoom_activate), self); - gtk_menu_append (GTK_MENU (submenu), item); + gtk_menu_shell_append (GTK_MENU_SHELL (submenu), item); /* show zoom sumbenu */ gtk_widget_show_all (submenu);
@@ -558,7 +558,7 @@ static void inspector_set_detached (GwhBrowser *self, g_signal_connect (item, "activate", G_CALLBACK (on_item_flip_orientation_activate), self); gtk_widget_show (item); - gtk_menu_append (menu, item); + gtk_menu_shell_append (GTK_MENU_SHELL (menu), item); if (! INSPECTOR_VISIBLE (self) || INSPECTOR_DETACHED (self)) { gtk_widget_set_sensitive (item, FALSE); }
Modified: webhelper/src/gwh-plugin.c 4 files changed, 2 insertions(+), 2 deletions(-) =================================================================== @@ -258,14 +258,14 @@ enum {
item = gtk_separator_menu_item_new (); gtk_widget_show (item); - gtk_menu_append (menu, item); + gtk_menu_shell_append (GTK_MENU_SHELL (menu), item);
g_object_get (G_OBJECT (G_settings), "browser-auto-reload", &auto_reload, NULL); item = gtk_check_menu_item_new_with_mnemonic (_("Reload upon document saving")); gtk_check_menu_item_set_active (GTK_CHECK_MENU_ITEM (item), auto_reload); gtk_widget_show (item); - gtk_menu_append (menu, item); + gtk_menu_shell_append (GTK_MENU_SHELL (menu), item); g_signal_connect (item, "toggled", G_CALLBACK (on_item_auto_reload_toggled), NULL); }
-------------- This E-Mail was brought to you by github_commit_mail.py (Source: TBD).