diff options
author | Kjartan Maraas <kmaraas@gnome.org> | 2006-11-16 12:22:01 +0000 |
---|---|---|
committer | Kjartan Maraas <kmaraas@src.gnome.org> | 2006-11-16 12:22:01 +0000 |
commit | 5746da97dcc262a6eb14815ca723ecbfc1f29d31 (patch) | |
tree | c0a76aa7abc03384a3f881db4c9a1bf76e50909f /mixer/applet.c | |
parent | e68675489c8382e1c9cfcb4bb243c8d1e9e95807 (diff) |
Also use left/right key to change volume. Patch from Jerry Tan. Closes bug
2006-11-16 Kjartan Maraas <kmaraas@gnome.org>
* applet.c: Also use left/right key to change volume.
Patch from Jerry Tan. Closes bug 353644.
Diffstat (limited to 'mixer/applet.c')
-rw-r--r-- | mixer/applet.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/mixer/applet.c b/mixer/applet.c index 2e74c2ba9..c278ced34 100644 --- a/mixer/applet.c +++ b/mixer/applet.c @@ -848,6 +848,8 @@ gnome_volume_applet_key (GtkWidget *widget, return TRUE; case GDK_Page_Up: case GDK_Page_Down: + case GDK_Left: + case GDK_Right: case GDK_Up: case GDK_Down: { GtkAdjustment *adj = gtk_range_get_adjustment (applet->dock->scale); @@ -856,12 +858,14 @@ gnome_volume_applet_key (GtkWidget *widget, if (event->state != 0) break; - if (event->keyval == GDK_Up || event->keyval == GDK_Down) + if (event->keyval == GDK_Up || event->keyval == GDK_Down + ||event->keyval == GDK_Left) increment = adj->step_increment; else increment = adj->page_increment; - if (event->keyval == GDK_Page_Up || event->keyval == GDK_Up) { + if (event->keyval == GDK_Page_Up || event->keyval == GDK_Up + ||event->keyval == GDK_Right) { volume += increment; if (volume > adj->upper) volume = adj->upper; |