diff options
author | Wu Xiaotian <[email protected]> | 2019-07-20 15:15:41 +0800 |
---|---|---|
committer | raveit65 <[email protected]> | 2019-08-26 14:21:14 +0200 |
commit | 6589911b919b7ab44556c1966c5ab5befcd46688 (patch) | |
tree | 3005e762f7b2f9ec0bb5a468dba53a1aed613208 /src/caja-view-as-action.c | |
parent | 093aacfeccdb47b6b12b1978dd88243479626398 (diff) | |
download | caja-6589911b919b7ab44556c1966c5ab5befcd46688.tar.bz2 caja-6589911b919b7ab44556c1966c5ab5befcd46688.tar.xz |
hide menu and toolbutton when view is only one
Diffstat (limited to 'src/caja-view-as-action.c')
-rw-r--r-- | src/caja-view-as-action.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/caja-view-as-action.c b/src/caja-view-as-action.c index 115dfedd..4c1a7d4b 100644 --- a/src/caja-view-as-action.c +++ b/src/caja-view-as-action.c @@ -158,6 +158,11 @@ view_as_changed_callback (CajaWindow *window, } gtk_combo_box_set_active (combo_box, selected_index); + if (g_list_length (window->details->short_list_viewers) == 1) { + gtk_widget_hide(GTK_WIDGET(combo_box)); + } else { + gtk_widget_show(GTK_WIDGET(combo_box)); + } } |