From 8b27f16590e48d2dcf682d7eab92757fc1abdedb Mon Sep 17 00:00:00 2001 From: Christian Dywan Date: Wed, 28 Oct 2009 23:58:32 +0100 Subject: [PATCH] Never span check or picker buttons, only indent them --- katze/katze-preferences.c | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/katze/katze-preferences.c b/katze/katze-preferences.c index 3239ec65..671eee87 100644 --- a/katze/katze-preferences.c +++ b/katze/katze-preferences.c @@ -17,6 +17,7 @@ #if HAVE_HILDON #include "katze-scrolled.h" + #include #endif #include @@ -350,11 +351,15 @@ 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") || !priv->hbox) - { - if (!priv->hbox) - _type = g_intern_string ("indented"); + if (!priv->hbox) + _type = g_intern_string ("indented"); + #ifdef HAVE_HILDON_2_2 + else if (HILDON_IS_CHECK_BUTTON (widget) || HILDON_IS_PICKER_BUTTON (widget)) + _type = g_intern_string ("indented"); + #endif + if (_type != g_intern_static_string ("spanned")) + { priv->hbox = gtk_hbox_new (FALSE, 4); gtk_widget_show (priv->hbox); gtk_box_pack_start (GTK_BOX (priv->hbox), widget, TRUE, FALSE, 0); -- 2.39.5