]> spindle.queued.net Git - midori/commitdiff
Remove the obsolete MidoriPanel::menu property
authorChristian Dywan <christian@twotoasts.de>
Thu, 29 Jul 2010 13:39:16 +0000 (15:39 +0200)
committerChristian Dywan <christian@twotoasts.de>
Fri, 30 Jul 2010 20:09:02 +0000 (22:09 +0200)
midori/midori-browser.c
midori/midori-panel.c

index b38dcb110ef335bbb006db06bfe37c896a5c8622..91b6d9e1deae1cf5041fa2c7752525f00b9d21ef 100644 (file)
@@ -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",
index 694fc87cf1e87a07ed964f52796b4d6eff16b78b..9747b342aa80328ddc3a27b12e6c32ccbd1f1a76 100644 (file)
@@ -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;