changeset 17723:c918d59d5936

Added the ability to change the key bindings on the active window. Still looking for a way to create a more informative title to the binding list window.
author Eric Polino <aluink@pidgin.im>
date Tue, 12 Jun 2007 13:52:33 +0000
parents 15988e2bd270
children d7cd0afd3c36
files finch/libgnt/gntwm.c
diffstat 1 files changed, 11 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/finch/libgnt/gntwm.c	Fri Jun 08 05:43:29 2007 +0000
+++ b/finch/libgnt/gntwm.c	Tue Jun 12 13:52:33 2007 +0000
@@ -1055,6 +1055,15 @@
 }
 
 static gboolean
+help_for_window(GntBindable *bindable, GList *null)
+{
+	GntWM *wm = GNT_WM(bindable);
+	GntWidget *widget = wm->ordered->data;
+
+	return help_for_bindable(wm,GNT_BINDABLE(widget));
+}
+
+static gboolean
 help_for_widget(GntBindable *bindable, GList *null)
 {
 	GntWM *wm = GNT_WM(bindable);
@@ -1208,6 +1217,8 @@
 				"\033" "/", NULL);
 	gnt_bindable_class_register_action(GNT_BINDABLE_CLASS(klass), "help-for-wm", help_for_wm,
 				"\033" "\\", NULL);
+	gnt_bindable_class_register_action(GNT_BINDABLE_CLASS(klass), "help-for-window", help_for_window,
+				"\033" "|", NULL);
 	gnt_bindable_class_register_action(GNT_BINDABLE_CLASS(klass), "toggle-clipboard", toggle_clipboard, 
 				"\033" "C", NULL);
 	gnt_bindable_class_register_action(GNT_BINDABLE_CLASS(klass), "ignore-keys-start", ignore_keys_start,