[gthumb] reset all the viewer properties when setting the default tool
- From: Paolo Bacchilega <paobac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gthumb] reset all the viewer properties when setting the default tool
- Date: Sat, 9 Nov 2013 20:08:31 +0000 (UTC)
commit bdf352dbb8cb0f27f4059daffa57e09ddfb014eb
Author: Paolo Bacchilega <paobac src gnome org>
Date: Fri Nov 1 19:56:41 2013 +0100
reset all the viewer properties when setting the default tool
extensions/image_viewer/gth-image-viewer-page.c | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/extensions/image_viewer/gth-image-viewer-page.c b/extensions/image_viewer/gth-image-viewer-page.c
index 55ccddd..214b0c1 100644
--- a/extensions/image_viewer/gth-image-viewer-page.c
+++ b/extensions/image_viewer/gth-image-viewer-page.c
@@ -633,12 +633,6 @@ gth_image_viewer_page_real_activate (GthViewerPage *base,
self->priv->preloader = gth_browser_get_image_preloader (browser);
self->priv->viewer = gth_image_viewer_new ();
- gth_image_viewer_set_zoom_quality (GTH_IMAGE_VIEWER (self->priv->viewer),
- g_settings_get_enum (self->priv->settings,
PREF_IMAGE_VIEWER_ZOOM_QUALITY));
- gth_image_viewer_set_zoom_change (GTH_IMAGE_VIEWER (self->priv->viewer),
- g_settings_get_enum (self->priv->settings,
PREF_IMAGE_VIEWER_ZOOM_CHANGE));
- gth_image_viewer_set_reset_scrollbars (GTH_IMAGE_VIEWER (self->priv->viewer),
- g_settings_get_boolean (self->priv->settings,
PREF_IMAGE_VIEWER_RESET_SCROLLBARS));
gth_image_viewer_page_reset_viewer_tool (self);
gtk_widget_show (self->priv->viewer);
@@ -1521,6 +1515,12 @@ gth_image_viewer_page_reset_viewer_tool (GthImageViewerPage *self)
g_object_unref (dragger);
gth_image_viewer_set_fit_mode (GTH_IMAGE_VIEWER (self->priv->viewer), GTH_FIT_SIZE_IF_LARGER);
+ gth_image_viewer_set_zoom_quality (GTH_IMAGE_VIEWER (self->priv->viewer),
+ g_settings_get_enum (self->priv->settings,
PREF_IMAGE_VIEWER_ZOOM_QUALITY));
+ gth_image_viewer_set_zoom_change (GTH_IMAGE_VIEWER (self->priv->viewer),
+ g_settings_get_enum (self->priv->settings,
PREF_IMAGE_VIEWER_ZOOM_CHANGE));
+ gth_image_viewer_set_reset_scrollbars (GTH_IMAGE_VIEWER (self->priv->viewer),
+ g_settings_get_boolean (self->priv->settings,
PREF_IMAGE_VIEWER_RESET_SCROLLBARS));
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]