[gthumb] fixed crash when going fullscreen with no image in the file list
- From: Paolo Bacchilega <paobac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gthumb] fixed crash when going fullscreen with no image in the file list
- Date: Sun, 3 Jul 2011 19:27:04 +0000 (UTC)
commit 47287b1c24a303d5c8d7fe3f5179251a1a740084
Author: Paolo Bacchilega <paobac src gnome org>
Date: Sun Jul 3 21:24:08 2011 +0200
fixed crash when going fullscreen with no image in the file list
[fixed bug]
gthumb/gth-browser.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/gthumb/gth-browser.c b/gthumb/gth-browser.c
index eb06806..555a11b 100644
--- a/gthumb/gth-browser.c
+++ b/gthumb/gth-browser.c
@@ -5982,7 +5982,10 @@ gth_browser_fullscreen (GthBrowser *browser)
}
if (browser->priv->current_file == NULL)
- gth_browser_show_first_image (browser, FALSE, FALSE);
+ if (! gth_browser_show_first_image (browser, FALSE, FALSE)) {
+ browser->priv->fullscreen = FALSE;
+ return;
+ }
_gth_browser_create_fullscreen_toolbar (browser);
g_list_free (browser->priv->fullscreen_controls);
@@ -6000,10 +6003,10 @@ gth_browser_fullscreen (GthBrowser *browser)
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_properties (browser->priv->viewer_page, browser->priv->properties_on_screen);
gth_viewer_page_show (browser->priv->viewer_page);
gth_viewer_page_fullscreen (browser->priv->viewer_page, TRUE);
gth_viewer_page_show_pointer (browser->priv->viewer_page, FALSE);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]