[Xfce4-commits] <midori:master> Remove the obsolete MidoriPanel::menu property

Christian Dywan noreply at xfce.org
Fri Jul 30 22:12:03 CEST 2010


Updating branch refs/heads/master
         to 6b54f9e8b5191c6f72517bab8f8e7d6dfad83fdf (commit)
       from a724d883b1e1cb3a1f910eec64152502494a3cee (commit)

commit 6b54f9e8b5191c6f72517bab8f8e7d6dfad83fdf
Author: Christian Dywan <christian at twotoasts.de>
Date:   Thu Jul 29 15:39:16 2010 +0200

    Remove the obsolete MidoriPanel::menu property

 midori/midori-browser.c |    1 -
 midori/midori-panel.c   |   26 --------------------------
 2 files changed, 0 insertions(+), 27 deletions(-)

diff --git a/midori/midori-browser.c b/midori/midori-browser.c
index b38dcb1..91b6d9e 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 694fc87..9747b34 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;



More information about the Xfce4-commits mailing list