[gtk+/toolpalette] toolpalette: Always show text horizontally



commit e8b640104e5c71b497deea9c2f90016a24d70c2b
Author: Johannes Schmid <jhs gnome org>
Date:   Wed Nov 11 09:27:00 2009 +0100

    toolpalette: Always show text horizontally

 gtk/gtktoolitemgroup.c |   11 -----------
 1 files changed, 0 insertions(+), 11 deletions(-)
---
diff --git a/gtk/gtktoolitemgroup.c b/gtk/gtktoolitemgroup.c
index aa7362b..073228b 100644
--- a/gtk/gtktoolitemgroup.c
+++ b/gtk/gtktoolitemgroup.c
@@ -168,17 +168,6 @@ gtk_tool_item_group_get_text_alignment (GtkToolShell *shell)
 static GtkOrientation
 gtk_tool_item_group_get_text_orientation (GtkToolShell *shell)
 {
-  GtkWidget *parent = gtk_widget_get_parent (GTK_WIDGET (shell));
-
-  if (GTK_IS_TOOL_PALETTE (parent))
-    {
-      GtkOrientation orientation = gtk_orientable_get_orientation (GTK_ORIENTABLE (parent));
-      if (GTK_ORIENTATION_HORIZONTAL == orientation &&
-          (GTK_TOOLBAR_TEXT == gtk_tool_item_group_get_style (shell)/* ||
-           GTK_TOOLBAR_BOTH_HORIZ == gtk_tool_item_group_get_style (shell)*/))
-        return GTK_ORIENTATION_VERTICAL;
-    }
-
   return GTK_ORIENTATION_HORIZONTAL;
 }
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]