[totem] Bug 635440 — Add the shortcut Ctrl+= for zooming in
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [totem] Bug 635440 — Add the shortcut Ctrl+= for zooming in
- Date: Tue, 14 Dec 2010 15:12:45 +0000 (UTC)
commit a7089ee9ad19f6ea2095d4f27695c1b196415c83
Author: Philip Withnall <philip tecnocode co uk>
Date: Tue Dec 14 12:39:00 2010 +0000
Bug 635440 â?? Add the shortcut Ctrl+= for zooming in
src/totem-object.c | 14 ++++++++++++--
1 files changed, 12 insertions(+), 2 deletions(-)
---
diff --git a/src/totem-object.c b/src/totem-object.c
index d5288d0..e76279b 100644
--- a/src/totem-object.c
+++ b/src/totem-object.c
@@ -3748,6 +3748,14 @@ totem_action_handle_key_press (TotemObject *totem, GdkEventKey *event)
totem_action_menu_popup (totem, 0);
break;
+ case GDK_KEY_equal:
+ if (event->state & GDK_CONTROL_MASK)
+ totem_action_zoom_relative (totem, ZOOM_IN_OFFSET);
+ break;
+ case GDK_KEY_hyphen:
+ if (event->state & GDK_CONTROL_MASK)
+ totem_action_zoom_relative (totem, ZOOM_OUT_OFFSET);
+ break;
case GDK_KEY_plus:
case GDK_KEY_KP_Add:
if (!(event->state & GDK_CONTROL_MASK)) {
@@ -3847,8 +3855,8 @@ window_key_press_event_cb (GtkWidget *win, GdkEventKey *event, TotemObject *tote
return FALSE;
}
- /* Special case Eject, Open, Open URI and
- * seeking keyboard shortcuts */
+ /* Special case Eject, Open, Open URI,
+ * seeking and zoom keyboard shortcuts */
if (event->state != 0
&& (event->state & GDK_CONTROL_MASK))
{
@@ -3870,6 +3878,8 @@ window_key_press_event_cb (GtkWidget *win, GdkEventKey *event, TotemObject *tote
case GDK_KEY_minus:
case GDK_KEY_KP_Subtract:
case GDK_KEY_0:
+ case GDK_KEY_equal:
+ case GDK_KEY_hyphen:
if (event->type == GDK_KEY_PRESS)
return totem_action_handle_key_press (totem, event);
else
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]