[gthumb] fixed zoom info not showed on the status bar
- From: Paolo Bacchilega <paobac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gthumb] fixed zoom info not showed on the status bar
- Date: Sat, 19 Apr 2014 17:18:30 +0000 (UTC)
commit 080fe433186b0be3e4a2e39fcad2941575c00fa8
Author: Paolo Bacchilega <paobac src gnome org>
Date: Sat Apr 19 19:17:57 2014 +0200
fixed zoom info not showed on the status bar
extensions/image_viewer/gth-image-viewer-page.c | 22 +++++++++++++++-------
1 files changed, 15 insertions(+), 7 deletions(-)
---
diff --git a/extensions/image_viewer/gth-image-viewer-page.c b/extensions/image_viewer/gth-image-viewer-page.c
index baf4b9e..5e14624 100644
--- a/extensions/image_viewer/gth-image-viewer-page.c
+++ b/extensions/image_viewer/gth-image-viewer-page.c
@@ -407,17 +407,11 @@ update_overview_visibility (GthImageViewerPage *self)
static void
-viewer_zoom_changed_cb (GtkWidget *widget,
- GthImageViewerPage *self)
+update_zoom_info (GthImageViewerPage *self)
{
double zoom;
char *text;
- gth_viewer_page_update_sensitivity (GTH_VIEWER_PAGE (self));
- update_image_quality_if_required (self);
- self->priv->pointer_on_viewer = TRUE;
- update_overview_visibility (self);
-
zoom = gth_image_viewer_get_zoom (GTH_IMAGE_VIEWER (self->priv->viewer));
text = g_strdup_printf (" %d%% ", (int) (zoom * 100));
gth_statusbar_set_secondary_text (GTH_STATUSBAR (gth_browser_get_statusbar (self->priv->browser)),
text);
@@ -427,10 +421,24 @@ viewer_zoom_changed_cb (GtkWidget *widget,
static void
+viewer_zoom_changed_cb (GtkWidget *widget,
+ GthImageViewerPage *self)
+{
+ gth_viewer_page_update_sensitivity (GTH_VIEWER_PAGE (self));
+ update_image_quality_if_required (self);
+ self->priv->pointer_on_viewer = TRUE;
+ update_overview_visibility (self);
+ update_zoom_info (self);
+}
+
+
+static void
viewer_image_changed_cb (GtkWidget *widget,
GthImageViewerPage *self)
{
+ gth_viewer_page_update_sensitivity (GTH_VIEWER_PAGE (self));
update_overview_visibility (self);
+ update_zoom_info (self);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]