From 6b54f9e8b5191c6f72517bab8f8e7d6dfad83fdf Mon Sep 17 00:00:00 2001 From: Christian Dywan Date: Thu, 29 Jul 2010 15:39:16 +0200 Subject: [PATCH] Remove the obsolete MidoriPanel::menu property --- midori/midori-browser.c | 1 - midori/midori-panel.c | 26 -------------------------- 2 files changed, 27 deletions(-) diff --git a/midori/midori-browser.c b/midori/midori-browser.c index b38dcb11..91b6d9e1 100644 --- a/midori/midori-browser.c +++ b/midori/midori-browser.c @@ -5864,7 +5864,6 @@ midori_browser_init (MidoriBrowser* browser) gtk_widget_show (hpaned); browser->panel = g_object_new (MIDORI_TYPE_PANEL, "action-group", browser->action_group, - "menu", browser->menu_tools, NULL); g_object_connect (browser->panel, "signal::notify::page", diff --git a/midori/midori-panel.c b/midori/midori-panel.c index 694fc87c..9747b342 100644 --- a/midori/midori-panel.c +++ b/midori/midori-panel.c @@ -38,7 +38,6 @@ struct _MidoriPanel GtkWidget* toolbook; GtkWidget* notebook; GtkActionGroup* action_group; - GtkMenu* menu; gboolean show_titles; gboolean show_controls; @@ -63,7 +62,6 @@ enum PROP_SHADOW_TYPE, PROP_ACTION_GROUP, - PROP_MENU, PROP_PAGE, PROP_SHOW_TITLES, PROP_SHOW_CONTROLS, @@ -165,24 +163,6 @@ midori_panel_class_init (MidoriPanelClass* class) GTK_TYPE_ACTION_GROUP, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); - /** - * MidoriWebSettings:menu: - * - * This is the menu that holds the panel menu items. - * - * You shouldn't use this menu or add items. - * - * Deprecated: 0.1.9 - */ - g_object_class_install_property (gobject_class, - PROP_MENU, - g_param_spec_object ( - "menu", - "Menu", - "Menu to hold panel items", - GTK_TYPE_MENU, - G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); - g_object_class_install_property (gobject_class, PROP_PAGE, g_param_spec_int ( @@ -508,9 +488,6 @@ midori_panel_set_property (GObject* object, case PROP_ACTION_GROUP: katze_object_assign (panel->action_group, g_value_dup_object (value)); break; - case PROP_MENU: - katze_object_assign (panel->menu, g_value_dup_object (value)); - break; case PROP_PAGE: midori_panel_set_current_page (panel, g_value_get_int (value)); break; @@ -556,9 +533,6 @@ midori_panel_get_property (GObject* object, case PROP_ACTION_GROUP: g_value_set_object (value, panel->action_group); break; - case PROP_MENU: - g_value_set_object (value, panel->menu); - break; case PROP_PAGE: g_value_set_int (value, midori_panel_get_current_page (panel)); break; -- 2.39.5