[gthumb] browser: hide the on-screen properties when entering/exiting fullscreen mode
- From: Paolo Bacchilega <paobac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gthumb] browser: hide the on-screen properties when entering/exiting fullscreen mode
- Date: Thu, 20 Jan 2011 20:20:02 +0000 (UTC)
commit c7991f1ee6b3ccbcf91f66ef2dcc4a963a6e59c3
Author: Paolo Bacchilega <paobac src gnome org>
Date: Mon Jan 17 21:42:10 2011 +0100
browser: hide the on-screen properties when entering/exiting fullscreen mode
gthumb/gth-browser.c | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/gthumb/gth-browser.c b/gthumb/gth-browser.c
index 1f35715..67b6fc2 100644
--- a/gthumb/gth-browser.c
+++ b/gthumb/gth-browser.c
@@ -5854,6 +5854,9 @@ gth_browser_fullscreen (GthBrowser *browser)
gth_window_set_current_page (GTH_WINDOW (browser), GTH_BROWSER_PAGE_VIEWER);
gth_window_show_only_content (GTH_WINDOW (browser), TRUE);
+ browser->priv->properties_on_screen = FALSE;
+ gth_viewer_page_show_properties (browser->priv->viewer_page, browser->priv->properties_on_screen);
+
gtk_window_fullscreen (GTK_WINDOW (browser));
if (browser->priv->viewer_page != NULL) {
gth_viewer_page_show (browser->priv->viewer_page);
@@ -5886,6 +5889,7 @@ gth_browser_unfullscreen (GthBrowser *browser)
gth_window_show_only_content (GTH_WINDOW (browser), FALSE);
gth_window_set_current_page (GTH_WINDOW (browser), browser->priv->before_fullscreen.page);
_gth_browser_set_thumbnail_list_visibility (browser, browser->priv->before_fullscreen.thumbnail_list);
+
if (browser->priv->before_fullscreen.viewer_properties)
gth_browser_show_viewer_properties (browser, TRUE);
else if (browser->priv->before_fullscreen.viewer_tools)
@@ -5895,6 +5899,10 @@ gth_browser_unfullscreen (GthBrowser *browser)
gth_browser_show_viewer_tools (browser, FALSE);
}
+ browser->priv->properties_on_screen = FALSE;
+ if (GTH_VIEWER_PAGE_GET_INTERFACE (browser->priv->viewer_page)->show_properties != NULL)
+ gth_viewer_page_show_properties (browser->priv->viewer_page, FALSE);
+
gtk_window_unfullscreen (GTK_WINDOW (browser));
if (browser->priv->viewer_page != NULL) {
gth_viewer_page_fullscreen (browser->priv->viewer_page, FALSE);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]