From 33804965a120dc5fbb26189dd22b2a50fd3a43f9 Mon Sep 17 00:00:00 2001 From: Christian Dywan Date: Tue, 18 Nov 2008 02:02:59 +0100 Subject: [PATCH] Expose browser notebook and panel as properties --- midori/midori-browser.c | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/midori/midori-browser.c b/midori/midori-browser.c index 6d843ed5..496e3ff6 100644 --- a/midori/midori-browser.c +++ b/midori/midori-browser.c @@ -88,6 +88,8 @@ enum PROP_MENUBAR, PROP_NAVIGATIONBAR, + PROP_NOTEBOOK, + PROP_PANEL, PROP_URI, PROP_TAB, PROP_STATUSBAR, @@ -1086,6 +1088,24 @@ midori_browser_class_init (MidoriBrowserClass* class) GTK_TYPE_TOOLBAR, G_PARAM_READABLE)); + g_object_class_install_property (gobject_class, + PROP_NOTEBOOK, + g_param_spec_object ( + "notebook", + "Notebook", + "The notebook containing the views", + GTK_TYPE_NOTEBOOK, + G_PARAM_READABLE)); + + g_object_class_install_property (gobject_class, + PROP_PANEL, + g_param_spec_object ( + "panel", + "Panel", + "The side panel embedded in the browser", + MIDORI_TYPE_PANEL, + G_PARAM_READABLE)); + g_object_class_install_property (gobject_class, PROP_URI, g_param_spec_string ( @@ -4567,6 +4587,12 @@ midori_browser_get_property (GObject* object, case PROP_NAVIGATIONBAR: g_value_set_object (value, browser->navigationbar); break; + case PROP_NOTEBOOK: + g_value_set_object (value, browser->notebook); + break; + case PROP_PANEL: + g_value_set_object (value, browser->panel); + break; case PROP_URI: g_value_set_string (value, midori_browser_get_current_uri (browser)); break;