[totem] screenshot: Use Ctrl+Alt+S for screenshots
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [totem] screenshot: Use Ctrl+Alt+S for screenshots
- Date: Tue, 4 Dec 2012 09:24:08 +0000 (UTC)
commit 44d6693ee45cfe9eb8bdf8a9a89f9fe3fea4e0f0
Author: Bastien Nocera <hadess hadess net>
Date: Tue Dec 4 10:23:34 2012 +0100
screenshot: Use Ctrl+Alt+S for screenshots
src/plugins/screenshot/totem-screenshot-plugin.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/plugins/screenshot/totem-screenshot-plugin.c b/src/plugins/screenshot/totem-screenshot-plugin.c
index b6e763f..dcb4732 100644
--- a/src/plugins/screenshot/totem-screenshot-plugin.c
+++ b/src/plugins/screenshot/totem-screenshot-plugin.c
@@ -275,7 +275,8 @@ window_key_press_event_cb (GtkWidget *window, GdkEventKey *event, TotemScreensho
break;
case GDK_KEY_s:
case GDK_KEY_S:
- if (event->state & GDK_CONTROL_MASK)
+ if (event->state & GDK_CONTROL_MASK &&
+ event->state & GDK_MOD1_MASK)
take_screenshot_action_cb (NULL, self);
else
return FALSE;
@@ -330,7 +331,7 @@ impl_activate (PeasActivatable *plugin)
TotemScreenshotPlugin *self = TOTEM_SCREENSHOT_PLUGIN (plugin);
TotemScreenshotPluginPrivate *priv = self->priv;
const GtkActionEntry menu_entries[] = {
- { "take-screenshot", "camera-photo", N_("Take _Screenshot"), "<Ctrl>S", N_("Take a screenshot"), G_CALLBACK (take_screenshot_action_cb) },
+ { "take-screenshot", "camera-photo", N_("Take _Screenshot"), "<Ctrl><Primary>S", N_("Take a screenshot"), G_CALLBACK (take_screenshot_action_cb) },
{ "take-gallery", NULL, N_("Create Screenshot _Gallery..."), NULL, N_("Create a gallery of screenshots"), G_CALLBACK (take_gallery_action_cb) }
};
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]