[gtk+] Fix GtkToolButton possibly being empty
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc: 
- Subject: [gtk+] Fix GtkToolButton possibly being empty
- Date: Wed, 16 Oct 2013 01:44:26 +0000 (UTC)
commit 48770fda3018ca5f418493be5b0f6aa083e8a14f
Author: Olivier Brunel <jjk jjacky com>
Date:   Mon Oct 14 20:08:30 2013 +0200
    Fix GtkToolButton possibly being empty
    
    With style BOTH_HORIZ the label would not be selected (if not marked
    "important") and when there's no icon, it would result in an empty button.
    
    Signed-off-by: Olivier Brunel <jjk jjacky com>
    
    https://bugzilla.gnome.org/show_bug.cgi?id=710134
 gtk/gtktoolbutton.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtktoolbutton.c b/gtk/gtktoolbutton.c
index 7acfc9f..0aeea1b 100644
--- a/gtk/gtktoolbutton.c
+++ b/gtk/gtktoolbutton.c
@@ -421,7 +421,7 @@ gtk_tool_button_construct_contents (GtkToolItem *tool_item)
       need_label = TRUE;
     }
   
-  if (style == GTK_TOOLBAR_ICONS && button->priv->icon_widget == NULL &&
+  if (style != GTK_TOOLBAR_TEXT && button->priv->icon_widget == NULL &&
       button->priv->stock_id == NULL && button->priv->icon_name == NULL)
     {
       need_label = TRUE;
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]