Follow API changes of Granite static notebook

Fixes: https://bugs.launchpad.net/midori/+bug/1018474
This commit is contained in:
Christian Dywan 2012-07-03 00:23:33 +02:00
parent 708d74038f
commit d5bf30ec03

View file

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