[metacity] ui: Kill off meta_ui_accelerator_name
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [metacity] ui: Kill off meta_ui_accelerator_name
- Date: Wed, 7 Jan 2015 11:43:36 +0000 (UTC)
commit 7ad98683faca4f6691133aee0d848516bea8a81b
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Mon Apr 7 10:46:50 2014 -0400
ui: Kill off meta_ui_accelerator_name
It's unused.
src/include/ui.h | 3 ---
src/ui/ui.c | 37 -------------------------------------
2 files changed, 0 insertions(+), 40 deletions(-)
---
diff --git a/src/include/ui.h b/src/include/ui.h
index 7652527..68d4168 100644
--- a/src/include/ui.h
+++ b/src/include/ui.h
@@ -165,9 +165,6 @@ gboolean meta_ui_parse_accelerator (const char *accel,
gboolean meta_ui_parse_modifier (const char *accel,
MetaVirtualModifier *mask);
-/* Caller responsible for freeing return string of meta_ui_accelerator_name! */
-gchar* meta_ui_accelerator_name (unsigned int keysym,
- MetaVirtualModifier mask);
gboolean meta_ui_window_is_widget (MetaUI *ui,
Window xwindow);
diff --git a/src/ui/ui.c b/src/ui/ui.c
index 2d28ce1..1c77718 100644
--- a/src/ui/ui.c
+++ b/src/ui/ui.c
@@ -835,43 +835,6 @@ meta_ui_parse_accelerator (const char *accel,
return TRUE;
}
-/* Caller responsible for freeing return string of meta_ui_accelerator_name! */
-gchar*
-meta_ui_accelerator_name (unsigned int keysym,
- MetaVirtualModifier mask)
-{
- GdkModifierType mods = 0;
-
- if (keysym == 0 && mask == 0)
- {
- return g_strdup ("disabled");
- }
-
- if (mask & META_VIRTUAL_SHIFT_MASK)
- mods |= GDK_SHIFT_MASK;
- if (mask & META_VIRTUAL_CONTROL_MASK)
- mods |= GDK_CONTROL_MASK;
- if (mask & META_VIRTUAL_ALT_MASK)
- mods |= GDK_MOD1_MASK;
- if (mask & META_VIRTUAL_MOD2_MASK)
- mods |= GDK_MOD2_MASK;
- if (mask & META_VIRTUAL_MOD3_MASK)
- mods |= GDK_MOD3_MASK;
- if (mask & META_VIRTUAL_MOD4_MASK)
- mods |= GDK_MOD4_MASK;
- if (mask & META_VIRTUAL_MOD5_MASK)
- mods |= GDK_MOD5_MASK;
- if (mask & META_VIRTUAL_SUPER_MASK)
- mods |= GDK_SUPER_MASK;
- if (mask & META_VIRTUAL_HYPER_MASK)
- mods |= GDK_HYPER_MASK;
- if (mask & META_VIRTUAL_META_MASK)
- mods |= GDK_META_MASK;
-
- return gtk_accelerator_name (keysym, mods);
-
-}
-
gboolean
meta_ui_parse_modifier (const char *accel,
MetaVirtualModifier *mask)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]