forked from AuroraMiddleware/gtk
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.
This commit is contained in:
parent
df61db6dbc
commit
4f830fb117
@ -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 &&
|
||||
|
Loading…
Reference in New Issue
Block a user