[gthumb] hide and disable some browser related commands in viewer mode
- From: Paolo Bacchilega <paobac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gthumb] hide and disable some browser related commands in viewer mode
- Date: Fri, 27 Aug 2010 07:43:02 +0000 (UTC)
commit a5cc1c89b8208c9d4fcfeda1ec8b13cd145d81c5
Author: Paolo Bacchilega <paobac src gnome org>
Date: Fri Aug 27 09:42:27 2010 +0200
hide and disable some browser related commands in viewer mode
[bug #627534]
gthumb/gth-browser-ui.h | 9 ++++-----
gthumb/gth-browser.c | 4 ++++
2 files changed, 8 insertions(+), 5 deletions(-)
---
diff --git a/gthumb/gth-browser-ui.h b/gthumb/gth-browser-ui.h
index dc8d03b..e066e4d 100644
--- a/gthumb/gth-browser-ui.h
+++ b/gthumb/gth-browser-ui.h
@@ -72,7 +72,6 @@ static const char *fixed_ui_info =
" <menuitem action='View_Reload'/>"
" <separator/>"
" <menuitem action='View_Toolbar'/>"
-" <menuitem action='View_Sidebar'/>"
" <menuitem action='View_Statusbar'/>"
" <placeholder name='View_Bars'/>"
" <separator/>"
@@ -81,10 +80,6 @@ static const char *fixed_ui_info =
" <separator/>"
" <placeholder name='File_Actions'/>"
" <separator/>"
-" <menuitem action='View_ShowHiddenFiles'/>"
-" <menuitem action='View_Sort_By'/>"
-" <menuitem action='View_Filters'/>"
-" <separator/>"
" <placeholder name='Folder_Actions'/>"
" </menu>"
" <menu name='Go' action='GoMenu'>"
@@ -217,9 +212,13 @@ static const char *browser_ui_info =
" </menu>"
" <menu name='View' action='ViewMenu'>"
" <placeholder name='View_Bars'>"
+" <menuitem action='View_Sidebar'/>"
" <menuitem action='View_Filterbar'/>"
" </placeholder>"
" <placeholder name='Folder_Actions'>"
+" <menuitem action='View_ShowHiddenFiles'/>"
+" <menuitem action='View_Sort_By'/>"
+" <menuitem action='View_Filters'/>"
" <menuitem action='View_Thumbnails'/>"
" </placeholder>"
" </menu>"
diff --git a/gthumb/gth-browser.c b/gthumb/gth-browser.c
index 10f908b..1a51b2a 100644
--- a/gthumb/gth-browser.c
+++ b/gthumb/gth-browser.c
@@ -550,6 +550,10 @@ gth_browser_update_sensitivity (GthBrowser *browser)
_gth_browser_set_action_sensitive (browser, "View_Prev", current_file_pos > 0);
_gth_browser_set_action_sensitive (browser, "View_Next", (current_file_pos != -1) && (current_file_pos < n_files - 1));
_gth_browser_set_action_sensitive (browser, "View_Thumbnail_List", gth_window_get_current_page (GTH_WINDOW (browser)) == GTH_BROWSER_PAGE_VIEWER);
+ _gth_browser_set_action_sensitive (browser, "View_Sort_By", gth_window_get_current_page (GTH_WINDOW (browser)) == GTH_BROWSER_PAGE_BROWSER);
+ _gth_browser_set_action_sensitive (browser, "View_Filters", gth_window_get_current_page (GTH_WINDOW (browser)) == GTH_BROWSER_PAGE_BROWSER);
+ _gth_browser_set_action_sensitive (browser, "View_Sidebar", gth_window_get_current_page (GTH_WINDOW (browser)) == GTH_BROWSER_PAGE_BROWSER);
+ _gth_browser_set_action_sensitive (browser, "View_ShowHiddenFiles", gth_window_get_current_page (GTH_WINDOW (browser)) == GTH_BROWSER_PAGE_BROWSER);
gth_sidebar_update_sensitivity (GTH_SIDEBAR (browser->priv->viewer_sidebar));
if (browser->priv->viewer_page != NULL)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]