Commit 1ed76a43 authored by Jens Granseuer's avatar Jens Granseuer Committed by Jens Granseuer
Browse files

for shortcuts without a description simply show "<Unknown Action>" instead

2009-02-23  Jens Granseuer  <jensgr@gmx.net>

	* gnome-keybinding-properties.c: (append_keys_to_tree),
	(update_custom_shortcut): for shortcuts without a description simply
	show "<Unknown Action>" instead of (unhelpful) parts of its GConf
	path (bug #572808)

svn path=/trunk/; revision=9285
parent bc85298d
2009-02-23 Jens Granseuer <jensgr@gmx.net>
* gnome-keybinding-properties.c: (append_keys_to_tree),
(update_custom_shortcut): for shortcuts without a description simply
show "<Unknown Action>" instead of (unhelpful) parts of its GConf
path (bug #572808)
2009-02-20 Jens Granseuer <jensgr@gmx.net>
* gnome-keybinding-properties.c: (update_custom_shortcut): don't
......
......@@ -611,7 +611,6 @@ append_keys_to_tree (GladeXML *dialog,
/* Only print a warning for keys that should have a schema */
if (keys_list[j].description_name == NULL)
g_warning ("No description for key '%s'", key_string);
description = g_path_get_basename (key_string);
}
if (keys_list[j].cmd_name != NULL)
......@@ -1468,7 +1467,10 @@ update_custom_shortcut (GtkTreeModel *model, GtkTreeIter *iter)
gtk_tree_store_set (GTK_TREE_STORE (model), iter,
KEYENTRY_COLUMN, key, -1);
client = gconf_client_get_default ();
gconf_client_set_string (client, key->desc_gconf_key, key->description, NULL);
if (key->description != NULL)
gconf_client_set_string (client, key->desc_gconf_key, key->description, NULL);
else
gconf_client_unset (client, key->desc_gconf_key, NULL);
gconf_client_set_string (client, key->cmd_gconf_key, key->command, NULL);
g_object_unref (client);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment