]> spindle.queued.net Git - midori/commitdiff
Expose browser notebook and panel as properties
authorChristian Dywan <christian@twotoasts.de>
Tue, 18 Nov 2008 01:02:59 +0000 (02:02 +0100)
committerChristian Dywan <christian@twotoasts.de>
Tue, 18 Nov 2008 01:02:59 +0000 (02:02 +0100)
midori/midori-browser.c

index 6d843ed5fa60eeea7ac5aa06abbf81385a9951b7..496e3ff61679e5d2c32f8207ae8b5d12c0807c1f 100644 (file)
@@ -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;