[evince] ev-zoom-action-widget: Update the zoom level when unfocused
- From: Carlos Garcia Campos <carlosgc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evince] ev-zoom-action-widget: Update the zoom level when unfocused
- Date: Sun, 14 Jul 2013 11:35:38 +0000 (UTC)
commit 69083a2da89bd702e9758798557f8fe7e81c422a
Author: Carlos Garcia Campos <carlosgc gnome org>
Date: Sun Jul 14 13:34:52 2013 +0200
ev-zoom-action-widget: Update the zoom level when unfocused
https://bugzilla.gnome.org/show_bug.cgi?id=704138
shell/ev-zoom-action-widget.c | 11 +++++++++++
1 files changed, 11 insertions(+), 0 deletions(-)
---
diff --git a/shell/ev-zoom-action-widget.c b/shell/ev-zoom-action-widget.c
index dbbd42a..379e43d 100644
--- a/shell/ev-zoom-action-widget.c
+++ b/shell/ev-zoom-action-widget.c
@@ -180,6 +180,14 @@ combo_activated_cb (GtkEntry *entry,
zoom * ev_document_misc_get_screen_dpi (screen) / 72.0);
}
+static gboolean
+combo_focus_out_cb (EvZoomActionWidget *control)
+{
+ ev_zoom_action_widget_update_zoom_level (control);
+
+ return FALSE;
+}
+
static gchar *
combo_format_entry_text (GtkComboBox *combo,
const gchar *path,
@@ -288,6 +296,9 @@ ev_zoom_action_widget_init (EvZoomActionWidget *control)
g_signal_connect (entry, "activate",
G_CALLBACK (combo_activated_cb),
control);
+ g_signal_connect_swapped (entry, "focus-out-event",
+ G_CALLBACK (combo_focus_out_cb),
+ control);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]