From 7c407a5e3eaa31a08c3bde36ceee7f4069f6b649 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Thu, 31 May 2007 22:33:11 +0000 Subject: [PATCH] first attempt at keybindings tab let you set the chain quit key. it even makes sure the key is valid! --- Makefile.am | 2 + src/behavior.c | 2 +- src/main.c | 1 + src/obconf.glade | 380 +++++++++++++++++++++++++++++++++++++++++++++++ src/strings.c | 8 + 5 files changed, 392 insertions(+), 1 deletion(-) diff --git a/Makefile.am b/Makefile.am index f66313d..b87eb38 100644 --- a/Makefile.am +++ b/Makefile.am @@ -51,6 +51,8 @@ src_obconf_SOURCES = \ src/main.h \ src/appearance.c \ src/appearance.h \ + src/keybindings.c \ + src/keybindings.h \ src/preview.c \ src/preview.h \ src/preview_update.c \ diff --git a/src/behavior.c b/src/behavior.c index e715c33..0fa8e74 100644 --- a/src/behavior.c +++ b/src/behavior.c @@ -1,6 +1,6 @@ /* -*- indent-tabs-mode: nil; tab-width: 4; c-basic-offset: 4; -*- - behavior.h for ObConf, the configuration tool for Openbox + behavior.c for ObConf, the configuration tool for Openbox Copyright (c) 2003-2007 Dana Jansens Copyright (c) 2003 Tim Riley diff --git a/src/main.c b/src/main.c index c8008a2..db30665 100644 --- a/src/main.c +++ b/src/main.c @@ -159,6 +159,7 @@ int main(int argc, char **argv) behavior_setup_tab(); desktops_setup_tab(); dock_setup_tab(); + keybindings_setup_tab(); mainwin = get_widget("main_window"); diff --git a/src/obconf.glade b/src/obconf.glade index 40a9fc9..f00235b 100644 --- a/src/obconf.glade +++ b/src/obconf.glade @@ -3254,6 +3254,316 @@ C - The close button tab + + + + 12 + True + False + 18 + + + + True + False + 6 + + + + True + <span weight="bold">Key Bindings</span> + False + True + GTK_JUSTIFY_LEFT + False + False + 0 + 0.5 + 0 + 0 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 + + + 0 + False + False + + + + + + True + False + 0 + + + + True + + False + False + GTK_JUSTIFY_LEFT + False + False + 0.5 + 0.5 + 0 + 0 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 + + + 0 + False + False + + + + + + True + True + GTK_POLICY_ALWAYS + GTK_POLICY_ALWAYS + GTK_SHADOW_IN + GTK_CORNER_TOP_LEFT + + + + True + GTK_SHADOW_IN + + + + True + False + 0 + + + + True + False + 0 + + + + True + True + True + False + False + True + False + False + False + + + 0 + True + True + + + + + 0 + True + True + + + + + + + + + 0 + True + True + + + + + 0 + True + True + + + + + 0 + True + True + + + + + + True + False + 6 + + + + True + <span weight="bold">Focusing Windows</span> + False + True + GTK_JUSTIFY_LEFT + False + False + 0 + 0.5 + 0 + 0 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 + + + 0 + False + False + + + + + + True + False + 0 + + + + True + + False + False + GTK_JUSTIFY_LEFT + False + False + 0.5 + 0.5 + 0 + 0 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 + + + 0 + False + False + + + + + + True + False + 3 + + + + True + Escape key chains: + False + False + GTK_JUSTIFY_LEFT + False + False + 0.5 + 0.5 + 0 + 0 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 + + + 0 + False + False + + + + + + True + True + True + True + 0 + + True + ● + False + + + + + 0 + True + True + + + + + 0 + True + True + + + + + 0 + True + True + + + + + 0 + False + True + + + + + False + True + + + + + + True + Key Bindings + False + False + GTK_JUSTIFY_LEFT + False + False + 0.5 + 0.5 + 0 + 0 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 + + + tab + + 0 @@ -3477,4 +3787,74 @@ Tim Riley <tr@slackzone.org> + + window1 + GTK_WINDOW_TOPLEVEL + GTK_WIN_POS_NONE + False + True + False + True + False + False + GDK_WINDOW_TYPE_HINT_NORMAL + GDK_GRAVITY_NORTH_WEST + True + False + + + + 12 + True + False + 18 + + + + True + <span weight="bold">Press the key you wish to bind...</span> + False + True + GTK_JUSTIFY_LEFT + False + False + 0 + 0.5 + 0 + 0 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 + + + 0 + False + False + + + + + + True + True + True + True + True + 0 + + True + ● + False + + + 0 + False + False + + + + + + diff --git a/src/strings.c b/src/strings.c index 05ebde4..405e1b4 100644 --- a/src/strings.c +++ b/src/strings.c @@ -97,6 +97,12 @@ gchar *s = N_(" "); gchar *s = N_("Delay before _showing:"); gchar *s = N_("ms"); gchar *s = N_("Dock"); +gchar *s = N_("Key Bindings"); +gchar *s = N_(" "); +gchar *s = N_("Focusing Windows"); +gchar *s = N_(" "); +gchar *s = N_("Escape key chains:"); +gchar *s = N_("Key Bindings"); gchar *s = N_("Abo_ut"); gchar *s = N_("About ObConf"); gchar *s = N_("ObConf VERSION"); @@ -104,3 +110,5 @@ gchar *s = N_("A preferences manager for Openbox"); gchar *s = N_("Copyright (c) 2003-2007\n" "Dana Jansens \n" "Tim Riley "); +gchar *s = N_("window1"); +gchar *s = N_("Press the key you wish to bind..."); -- 2.39.2