[gthumb] fixed crash when exiting from the crop tool
- From: Paolo Bacchilega <paobac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gthumb] fixed crash when exiting from the crop tool
- Date: Mon, 14 Nov 2011 22:58:50 +0000 (UTC)
commit 2d7102183ed43d84d2fdffc58f3063d10edd51ac
Author: Paolo Bacchilega <paobac src gnome org>
Date: Mon Nov 14 23:57:54 2011 +0100
fixed crash when exiting from the crop tool
extensions/file_tools/gth-file-tool-crop.c | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/extensions/file_tools/gth-file-tool-crop.c b/extensions/file_tools/gth-file-tool-crop.c
index e84847d..f9a5e18 100644
--- a/extensions/file_tools/gth-file-tool-crop.c
+++ b/extensions/file_tools/gth-file-tool-crop.c
@@ -562,6 +562,7 @@ gth_file_tool_crop_destroy_options (GthFileTool *base)
GtkWidget *window;
GtkWidget *viewer_page;
GtkWidget *viewer;
+ GSettings *viewer_settings;
self = (GthFileToolCrop *) base;
@@ -588,8 +589,13 @@ gth_file_tool_crop_destroy_options (GthFileTool *base)
viewer_page = gth_browser_get_viewer_page (GTH_BROWSER (window));
viewer = gth_image_viewer_page_get_image_viewer (GTH_IMAGE_VIEWER_PAGE (viewer_page));
gth_image_viewer_set_tool (GTH_IMAGE_VIEWER (viewer), NULL);
+
+ /* restore the zoom quality */
+ viewer_settings = g_settings_new (GTHUMB_IMAGE_VIEWER_SCHEMA);
gth_image_viewer_set_zoom_quality (GTH_IMAGE_VIEWER (viewer),
- g_settings_get_enum (self->priv->settings, PREF_IMAGE_VIEWER_ZOOM_QUALITY));
+ g_settings_get_enum (viewer_settings, PREF_IMAGE_VIEWER_ZOOM_QUALITY));
+
+ g_object_unref (viewer_settings);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]