summaryrefslogtreecommitdiff
path: root/gtk/gtktreeviewcolumn.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2014-05-17 15:32:54 -0400
committerMatthias Clasen <mclasen@redhat.com>2014-05-17 15:32:54 -0400
commit4f830fb117fb11953a03e5eab765543884ff610b (patch)
treea98442a32dd51e004f4ef2a781a4490669f85e48 /gtk/gtktreeviewcolumn.c
parentdf61db6dbc99259033dea81727e03a8b0b6d4c2b (diff)
downloadgtk+-4f830fb117fb11953a03e5eab765543884ff610b.tar.gz
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.
Diffstat (limited to 'gtk/gtktreeviewcolumn.c')
-rw-r--r--gtk/gtktreeviewcolumn.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/gtk/gtktreeviewcolumn.c b/gtk/gtktreeviewcolumn.c
index 55b9660b27..7449380efd 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 &&