[Xfce4-commits] <midori:master> Don't span preferences from different categories
Christian Dywan
noreply at xfce.org
Tue Oct 27 23:50:02 CET 2009
Updating branch refs/heads/master
to 0c3609ac14387f7f71f1bf66ae0be4fb955235cf (commit)
from b53bd5c2f4342644fe8c8c41a63e65afe5e45ccd (commit)
commit 0c3609ac14387f7f71f1bf66ae0be4fb955235cf
Author: Christian Dywan <christian at twotoasts.de>
Date: Tue Oct 27 23:47:11 2009 +0100
Don't span preferences from different categories
katze/katze-preferences.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/katze/katze-preferences.c b/katze/katze-preferences.c
index 4885482..3239ec6 100644
--- a/katze/katze-preferences.c
+++ b/katze/katze-preferences.c
@@ -246,6 +246,7 @@ katze_preferences_add_category (KatzePreferences* preferences,
priv->sizegroup = gtk_size_group_new (GTK_SIZE_GROUP_HORIZONTAL);
priv->sizegroup2 = gtk_size_group_new (GTK_SIZE_GROUP_HORIZONTAL);
+ priv->hbox = NULL;
#else
if (!priv->notebook)
katze_preferences_prepare (preferences);
@@ -349,8 +350,11 @@ katze_preferences_add_widget (KatzePreferences* preferences,
but lots of repeated function calls aren't either. */
gtk_widget_show_all (widget);
- if (_type != g_intern_static_string ("spanned"))
+ if (_type != g_intern_static_string ("spanned") || !priv->hbox)
{
+ if (!priv->hbox)
+ _type = g_intern_string ("indented");
+
priv->hbox = gtk_hbox_new (FALSE, 4);
gtk_widget_show (priv->hbox);
gtk_box_pack_start (GTK_BOX (priv->hbox), widget, TRUE, FALSE, 0);
More information about the Xfce4-commits
mailing list