changeset 17930:71df538ed27c

FIX: Rebinding would crash when one would try to bind without grabbing a new key comb.
author Eric Polino <aluink@pidgin.im>
date Thu, 07 Jun 2007 21:58:04 +0000
parents f3952839e6aa
children 3ee6ea8a66f8
files finch/libgnt/gntwm.c
diffstat 1 files changed, 10 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/finch/libgnt/gntwm.c	Thu Jun 07 21:55:04 2007 +0000
+++ b/finch/libgnt/gntwm.c	Thu Jun 07 21:58:04 2007 +0000
@@ -539,15 +539,16 @@
 help_for_widget_bind_button_activate(GntBindable *bindable, gpointer data)
 {
 
-
-	gnt_bindable_register_binding(rebind_info.klass,
-																NULL,
-																rebind_info.okeys,
-																rebind_info.params);
-	gnt_bindable_register_binding(rebind_info.klass,
-																rebind_info.name,
-																rebind_info.keys,
-																rebind_info.params);
+	if(rebind_info.keys){
+		gnt_bindable_register_binding(rebind_info.klass,
+																	NULL,
+																	rebind_info.okeys,
+																	rebind_info.params);
+		gnt_bindable_register_binding(rebind_info.klass,
+																	rebind_info.name,
+																	rebind_info.keys,
+																	rebind_info.params);
+	}
 	free_rebind_info();
 
 	gnt_widget_destroy(GNT_WIDGET(data));