]> spindle.queued.net Git - midori/commitdiff
Follow API changes of Granite static notebook
authorChristian Dywan <christian@twotoasts.de>
Mon, 2 Jul 2012 22:23:33 +0000 (00:23 +0200)
committerChristian Dywan <christian@twotoasts.de>
Mon, 2 Jul 2012 22:27:30 +0000 (00:27 +0200)
Fixes: https://bugs.launchpad.net/midori/+bug/1018474
katze/katze-preferences.c

index 4c7a9aaa6e0d7187189a226ffc090f5ed7025338..e8a7e7f01363a9bf41f98bfe4d7b3e601744f9ff 100644 (file)
@@ -210,7 +210,7 @@ katze_preferences_prepare (KatzePreferences* preferences)
                       G_CALLBACK (gtk_widget_destroyed), &priv->scrolled);
     #else
     #if HAVE_GRANITE
-    priv->notebook = granite_widgets_static_notebook_new ();
+    priv->notebook = g_object_new (GRANITE_WIDGETS_TYPE_STATIC_NOTEBOOK, NULL);
     #else
     priv->notebook = gtk_notebook_new ();
     #endif
@@ -310,7 +310,7 @@ katze_preferences_add_category (KatzePreferences* preferences,
     #if HAVE_GRANITE
     granite_widgets_static_notebook_append_page (
         GRANITE_WIDGETS_STATIC_NOTEBOOK (priv->notebook),
-        priv->page, gtk_label_new (label));
+        priv->page, GTK_LABEL (gtk_label_new (label)));
     #else
     gtk_notebook_append_page (GTK_NOTEBOOK (priv->notebook),
                               priv->page, gtk_label_new (label));