[gnome-settings-daemon] common: Remove now unused key grab functions
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-settings-daemon] common: Remove now unused key grab functions
- Date: Fri, 1 Mar 2013 16:11:44 +0000 (UTC)
commit b7f766de2a8f38b1e8cb76d8dfd9ff098c14c257
Author: Florian Müllner <fmuellner gnome org>
Date: Fri Mar 1 16:06:12 2013 +0100
common: Remove now unused key grab functions
https://bugzilla.gnome.org/show_bug.cgi?id=693016
plugins/common/gsd-keygrab.c | 39 ---------------------------------------
plugins/common/gsd-keygrab.h | 6 ------
2 files changed, 0 insertions(+), 45 deletions(-)
---
diff --git a/plugins/common/gsd-keygrab.c b/plugins/common/gsd-keygrab.c
index ce1a875..a56b131 100644
--- a/plugins/common/gsd-keygrab.c
+++ b/plugins/common/gsd-keygrab.c
@@ -247,13 +247,6 @@ grab_key_unsafe (Key *key,
grab_key_internal (key, TRUE, flags, screens);
}
-void
-ungrab_key_unsafe (Key *key,
- GSList *screens)
-{
- grab_key_internal (key, FALSE, 0, screens);
-}
-
static gboolean
have_xkb (Display *dpy)
{
@@ -368,38 +361,6 @@ match_xi2_key (Key *key, XIDeviceEvent *event)
&& key_uses_keycode (key, keycode));
}
-Key *
-parse_key (const char *str)
-{
- Key *key;
-
- if (str == NULL ||
- *str == '\0' ||
- g_str_equal (str, "disabled")) {
- return NULL;
- }
-
- key = g_new0 (Key, 1);
- gtk_accelerator_parse_with_keycode (str, &key->keysym, &key->keycodes, &key->state);
- if (key->keysym == 0 &&
- key->keycodes == NULL &&
- key->state == 0) {
- g_free (key);
- return NULL;
- }
-
- return key;
-}
-
-void
-free_key (Key *key)
-{
- if (key == NULL)
- return;
- g_free (key->keycodes);
- g_free (key);
-}
-
static void
grab_button_real (int deviceid,
gboolean grab,
diff --git a/plugins/common/gsd-keygrab.h b/plugins/common/gsd-keygrab.h
index 6ec8847..3420fa2 100644
--- a/plugins/common/gsd-keygrab.h
+++ b/plugins/common/gsd-keygrab.h
@@ -42,18 +42,12 @@ void grab_key_unsafe (Key *key,
GsdKeygrabFlags flags,
GSList *screens);
-void ungrab_key_unsafe (Key *key,
- GSList *screens);
-
gboolean match_xi2_key (Key *key,
XIDeviceEvent *event);
gboolean key_uses_keycode (const Key *key,
guint keycode);
-Key * parse_key (const char *str);
-void free_key (Key *key);
-
void grab_button (int deviceid,
gboolean grab,
GSList *screens);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]