[Xfce4-commits] <midori:master> Never span check or picker buttons, only indent them
Christian Dywan
noreply at xfce.org
Thu Oct 29 10:00:09 CET 2009
Updating branch refs/heads/master
to 8b27f16590e48d2dcf682d7eab92757fc1abdedb (commit)
from c541a75ae1847c2fc650184d0ba27cbf7c4f1531 (commit)
commit 8b27f16590e48d2dcf682d7eab92757fc1abdedb
Author: Christian Dywan <christian at twotoasts.de>
Date: Wed Oct 28 23:58:32 2009 +0100
Never span check or picker buttons, only indent them
katze/katze-preferences.c | 13 +++++++++----
1 files changed, 9 insertions(+), 4 deletions(-)
diff --git a/katze/katze-preferences.c b/katze/katze-preferences.c
index 3239ec6..671eee8 100644
--- a/katze/katze-preferences.c
+++ b/katze/katze-preferences.c
@@ -17,6 +17,7 @@
#if HAVE_HILDON
#include "katze-scrolled.h"
+ #include <hildon/hildon.h>
#endif
#include <string.h>
@@ -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);
More information about the Xfce4-commits
mailing list