[gtk+] treeview: Don't show missing images



commit 4f830fb117fb11953a03e5eab765543884ff610b
Author: Matthias Clasen <mclasen redhat com>
Date:   Sat May 17 15:32:54 2014 -0400

    treeview: Don't show missing images
    
    When a model is sortable, but the the column is not currently used
    for sorting, we want to reserve the space for showing the sort
    indicator. But we currently set the icon to 'missing-image', which
    is not great to show all over the place. So, just set the opacity
    to 0.

 gtk/gtktreeviewcolumn.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtktreeviewcolumn.c b/gtk/gtktreeviewcolumn.c
index 55b9660..7449380 100644
--- a/gtk/gtktreeviewcolumn.c
+++ b/gtk/gtktreeviewcolumn.c
@@ -1023,6 +1023,11 @@ gtk_tree_view_column_update_button (GtkTreeViewColumn *tree_column)
   else
     gtk_widget_hide (arrow);
 
+  if (priv->show_sort_indicator)
+    gtk_widget_set_opacity (arrow, 1.0);
+  else
+    gtk_widget_set_opacity (arrow, 0.0);
+
   /* It's always safe to hide the button.  It isn't always safe to show it, as
    * if you show it before it's realized, it'll get the wrong window. */
   if (priv->button &&


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