[gnome-control-center] keyboard: Simplify bit of code
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] keyboard: Simplify bit of code
- Date: Wed, 16 Feb 2011 01:31:35 +0000 (UTC)
commit 816068ff6f0952a15d3cdf6ee73eb86f76b9b65a
Author: Bastien Nocera <hadess hadess net>
Date: Tue Feb 15 17:58:45 2011 +0000
keyboard: Simplify bit of code
panels/keyboard/keyboard-shortcuts.c | 5 +----
1 files changed, 1 insertions(+), 4 deletions(-)
---
diff --git a/panels/keyboard/keyboard-shortcuts.c b/panels/keyboard/keyboard-shortcuts.c
index db86d84..7a0100c 100644
--- a/panels/keyboard/keyboard-shortcuts.c
+++ b/panels/keyboard/keyboard-shortcuts.c
@@ -617,10 +617,7 @@ parse_start_tag (GMarkupParseContext *ctx,
key.name = g_strdup (name);
key.description_name = NULL;
key.value = value;
- if (gconf_key)
- key.key = g_strdup (gconf_key);
- else
- key.key = NULL;
+ key.key = g_strdup (gconf_key);
key.comparison = comparison;
key.cmd_name = NULL;
g_array_append_val (keylist->entries, key);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]