[glade] GladeWindow: disable keybinding used by glade in every widget in the workspace. Now its posible to d
- From: Juan Pablo Ugarte <jpu src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glade] GladeWindow: disable keybinding used by glade in every widget in the workspace. Now its posible to d
- Date: Fri, 29 Nov 2013 23:44:18 +0000 (UTC)
commit 8d0271226965b0f0ddc2813967b19dac63f73503
Author: Juan Pablo Ugarte <juanpablougarte gmail com>
Date: Fri Nov 29 20:39:40 2013 -0300
GladeWindow: disable keybinding used by glade in every widget in the workspace.
Now its posible to delete an GtkEntry with Delete again!
src/glade-window.c | 31 +++++++++++++++++++++++++++++++
1 files changed, 31 insertions(+), 0 deletions(-)
---
diff --git a/src/glade-window.c b/src/glade-window.c
index d020660..8b93abd 100644
--- a/src/glade-window.c
+++ b/src/glade-window.c
@@ -3300,6 +3300,37 @@ glade_window_class_init (GladeWindowClass *klass)
provider = gtk_css_provider_new ();
gtk_css_provider_load_from_data (provider,
+ "@binding-set DisableBindings {\n"
+ " unbind \"<Control>s\";\n"
+ " unbind \"<Control>p\";\n"
+ " unbind \"<Control>w\";\n"
+ " unbind \"<Control>z\";\n"
+ " unbind \"<Control><shift>z\";\n"
+ " unbind \"<Control>x\";\n"
+ " unbind \"<Control>c\";\n"
+ " unbind \"<Control>v\";\n"
+ " unbind \"Delete\";\n"
+ " unbind \"<Control>Page_Up\";\n"
+ " unbind \"<Control>Page_Down\";\n"
+ " unbind \"<Control>Next\";\n"
+ " unbind \"<Control>n\";\n"
+ " unbind \"<Control>o\";\n"
+ " unbind \"<Control>q\";\n"
+ " unbind \"F1\";\n"
+ " unbind \"<Alt>0\";\n"
+ " unbind \"<Alt>1\";\n"
+ " unbind \"<Alt>2\";\n"
+ " unbind \"<Alt>3\";\n"
+ " unbind \"<Alt>4\";\n"
+ " unbind \"<Alt>5\";\n"
+ " unbind \"<Alt>6\";\n"
+ " unbind \"<Alt>7\";\n"
+ " unbind \"<Alt>8\";\n"
+ " unbind \"<Alt>9\";\n"
+ "}\n"
+ "GladeDesignView * {\n"
+ " gtk-key-bindings: DisableBindings;\n"
+ "}\n"
"GtkProgressBar#glade-tab-label-progress {\n"
" -GtkProgressBar-min-horizontal-bar-width : 1;\n"
" -GtkProgressBar-min-horizontal-bar-height : 1;\n"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]