From: Christian Dywan Date: Mon, 2 Jul 2012 22:23:33 +0000 (+0200) Subject: Follow API changes of Granite static notebook X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d5bf30ec032cb79e41909070b15be99af3713837;p=midori Follow API changes of Granite static notebook Fixes: https://bugs.launchpad.net/midori/+bug/1018474 --- diff --git a/katze/katze-preferences.c b/katze/katze-preferences.c index 4c7a9aaa..e8a7e7f0 100644 --- a/katze/katze-preferences.c +++ b/katze/katze-preferences.c @@ -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));