[gnome-control-center/gnome-2-28] Fix all the keybindings showing up when using compiz
- From: Bastien Nocera <hadess src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gnome-control-center/gnome-2-28] Fix all the keybindings showing up when using compiz
- Date: Thu, 29 Oct 2009 15:46:27 +0000 (UTC)
commit 3a23fd0535305bc45c7734bfa74536882b578c3e
Author: Bastien Nocera <hadess hadess net>
Date: Thu Oct 29 12:18:37 2009 +0000
Fix all the keybindings showing up when using compiz
The wm_common_get_current_keybindings() implementation
was broken.
https://bugzilla.gnome.org/show_bug.cgi?id=600021
capplets/common/wm-common.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/capplets/common/wm-common.c b/capplets/common/wm-common.c
index ef38489..d2ce82a 100644
--- a/capplets/common/wm-common.c
+++ b/capplets/common/wm-common.c
@@ -27,7 +27,7 @@ wm_common_get_window_manager_property (Atom atom)
guchar *val;
if (wm_window == None)
- return g_strdup (WM_COMMON_UNKNOWN);
+ return NULL;
utf8_string = XInternAtom (GDK_DISPLAY (), "UTF8_STRING", False);
@@ -46,7 +46,7 @@ wm_common_get_window_manager_property (Atom atom)
type != utf8_string || format != 8 || nitems == 0 ||
!g_utf8_validate (val, nitems, NULL))
{
- retval = g_strdup (WM_COMMON_UNKNOWN);
+ retval = NULL;
}
else
{
@@ -93,7 +93,7 @@ wm_common_get_current_keybindings (void)
char *wm_name = wm_common_get_window_manager_property (wm_atom);
char *to_copy[] = { NULL, NULL };
- to_copy[0] = wm_name;
+ to_copy[0] = wm_name ? wm_name : g_strdup (WM_COMMON_UNKNOWN);
results = g_strdupv (to_copy);
g_free (wm_name);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]