[Xfce4-commits] <ristretto:master> Hide thumbnailbar when no images are opened
Stephan Arts
noreply at xfce.org
Tue Oct 11 22:28:01 CEST 2011
Updating branch refs/heads/master
to 5f2070d331f4c412cd4e7f46313270be52584650 (commit)
from a9fad0158db9a50e79a9ee85d7a50b1d29713ab2 (commit)
commit 5f2070d331f4c412cd4e7f46313270be52584650
Author: Stephan Arts <stephan at xfce.org>
Date: Tue Oct 11 22:26:56 2011 +0200
Hide thumbnailbar when no images are opened
src/main_window.c | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/src/main_window.c b/src/main_window.c
index ec0e566..4fb4b9d 100644
--- a/src/main_window.c
+++ b/src/main_window.c
@@ -960,6 +960,7 @@ rstto_main_window_update_buttons (RsttoMainWindow *window)
switch (rstto_image_list_get_n_images (window->priv->props.image_list))
{
case 0:
+ gtk_widget_hide (window->priv->thumbnailbar);
gtk_widget_set_sensitive ( gtk_ui_manager_get_widget ( window->priv->ui_manager, "/main-menu/file-menu/save-copy"), FALSE);
/*
gtk_widget_set_sensitive ( gtk_ui_manager_get_widget ( window->priv->ui_manager, "/main-menu/file-menu/print"), FALSE);
@@ -1021,6 +1022,10 @@ rstto_main_window_update_buttons (RsttoMainWindow *window)
gtk_widget_set_sensitive ( gtk_ui_manager_get_widget ( window->priv->ui_manager, "/image-viewer-menu/zoom-fit"), FALSE);
break;
case 1:
+ if (rstto_settings_get_boolean_property (window->priv->settings_manager, "show-thumbnailbar"))
+ {
+ gtk_widget_show (window->priv->thumbnailbar);
+ }
gtk_widget_set_sensitive ( gtk_ui_manager_get_widget ( window->priv->ui_manager, "/main-menu/file-menu/save-copy"), TRUE);
/*
gtk_widget_set_sensitive ( gtk_ui_manager_get_widget ( window->priv->ui_manager, "/main-menu/file-menu/print"), TRUE);
@@ -1084,6 +1089,10 @@ rstto_main_window_update_buttons (RsttoMainWindow *window)
gtk_widget_set_sensitive ( gtk_ui_manager_get_widget ( window->priv->ui_manager, "/image-viewer-menu/zoom-fit"), TRUE);
break;
default:
+ if (rstto_settings_get_boolean_property (window->priv->settings_manager, "show-thumbnailbar"))
+ {
+ gtk_widget_show (window->priv->thumbnailbar);
+ }
gtk_widget_set_sensitive ( gtk_ui_manager_get_widget ( window->priv->ui_manager, "/main-menu/file-menu/save-copy"), TRUE);
/*
gtk_widget_set_sensitive ( gtk_ui_manager_get_widget ( window->priv->ui_manager, "/main-menu/file-menu/print"), TRUE);
More information about the Xfce4-commits
mailing list