summaryrefslogtreecommitdiff
path: root/src/glade-window.c
diff options
context:
space:
mode:
authorJuan Pablo Ugarte <juanpablougarte@gmail.com>2017-07-02 00:40:33 -0300
committerJuan Pablo Ugarte <juanpablougarte@gmail.com>2017-12-30 13:42:16 -0300
commit65036a67e814a11ad15269d0a3f93cf2c312f74f (patch)
tree1cef0087ec5a8612262be1d728d9729cdc4bf090 /src/glade-window.c
parent5c5cec96a9eb72187ca359169e19c5405c0b0dfc (diff)
downloadglade-65036a67e814a11ad15269d0a3f93cf2c312f74f.tar.gz
GladeWindow: moved css to glade-window.css file
Diffstat (limited to 'src/glade-window.c')
-rw-r--r--src/glade-window.c40
1 files changed, 2 insertions, 38 deletions
diff --git a/src/glade-window.c b/src/glade-window.c
index f10d8e67..731cc377 100644
--- a/src/glade-window.c
+++ b/src/glade-window.c
@@ -2366,7 +2366,7 @@ glade_window_init (GladeWindow *window)
*/
priv->preferences = (GladePreferences *)glade_preferences_new ();
glade_preferences_load (window->priv->preferences, glade_app_get_config ());
-
+
/* We need this for the icons to be available */
glade_init ();
@@ -2472,43 +2472,7 @@ glade_window_class_init (GladeWindowClass *klass)
widget_class->configure_event = glade_window_configure_event;
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"
- ".glade-tight-fit {\n"
- " margin: 0;\n"
- " padding: 0;\n"
- "}", -1, NULL);
-
+ gtk_css_provider_load_from_resource (provider, "/org/gnome/glade/glade-window.css");
gtk_style_context_add_provider_for_screen (gdk_screen_get_default (),
GTK_STYLE_PROVIDER (provider),
GTK_STYLE_PROVIDER_PRIORITY_APPLICATION);