# HG changeset patch # User Eric Polino # Date 1181656353 0 # Node ID c918d59d59368aad131bcbecab4fded00313724a # Parent 15988e2bd270206cb189090fd33fd7572554757b 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. diff -r 15988e2bd270 -r c918d59d5936 finch/libgnt/gntwm.c --- 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,