diff options
author | Cosimo Cecchi <cosimoc@gnome.org> | 2010-12-15 19:37:14 +0100 |
---|---|---|
committer | Cosimo Cecchi <cosimoc@gnome.org> | 2010-12-15 19:37:14 +0100 |
commit | 08f71aa76cd5f250613f4a2833b43a72831974fc (patch) | |
tree | 851736d9637663b9948684896c0d78a1c642359b | |
parent | 786ba61680bfaee136b4b72a53f220edb96a7db9 (diff) | |
download | nautilus-08f71aa76cd5f250613f4a2833b43a72831974fc.tar.gz |
theming: cleanup previous manually parsed CSS
It's not required anymore, now that we have a proper stylesheet.
-rw-r--r-- | src/nautilus-notebook.c | 23 | ||||
-rw-r--r-- | src/nautilus-window.c | 25 |
2 files changed, 0 insertions, 48 deletions
diff --git a/src/nautilus-notebook.c b/src/nautilus-notebook.c index 8663c0835..38a259026 100644 --- a/src/nautilus-notebook.c +++ b/src/nautilus-notebook.c @@ -230,29 +230,6 @@ button_press_cb (NautilusNotebook *notebook, static void nautilus_notebook_init (NautilusNotebook *notebook) { - static const gchar css_custom[] = - "#nautilus-tab-close-button {" - " -GtkWidget-focus-padding : 0;" - " -GtkWidget-focus-line-width: 0;" - " xthickness: 0;" - " ythickness: 0;" - "}"; - - GError *error = NULL; - GtkCssProvider *provider = gtk_css_provider_new (); - gtk_css_provider_load_from_data (provider, css_custom, -1, &error); - - if (error != NULL) { - g_warning ("Can't parse NautilusNotebook's CSS custom description: %s\n", error->message); - g_error_free (error); - } else { - gtk_style_context_add_provider (gtk_widget_get_style_context (GTK_WIDGET (notebook)), - GTK_STYLE_PROVIDER (provider), - GTK_STYLE_PROVIDER_PRIORITY_APPLICATION); - } - - g_object_unref (provider); - gtk_notebook_set_scrollable (GTK_NOTEBOOK (notebook), TRUE); gtk_notebook_set_show_border (GTK_NOTEBOOK (notebook), FALSE); gtk_notebook_set_show_tabs (GTK_NOTEBOOK (notebook), FALSE); diff --git a/src/nautilus-window.c b/src/nautilus-window.c index 9132c359c..a4bcc7af8 100644 --- a/src/nautilus-window.c +++ b/src/nautilus-window.c @@ -68,8 +68,6 @@ #define MAX_HISTORY_ITEMS 50 -#define EXTRA_VIEW_WIDGETS_BACKGROUND "#a7c6e1" - #define SIDE_PANE_MINIMUM_WIDTH 1 #define SIDE_PANE_MINIMUM_HEIGHT 400 @@ -139,29 +137,6 @@ nautilus_window_init (NautilusWindow *window) GtkWidget *menu; GtkWidget *statusbar; - static const gchar css_custom[] = - "#statusbar-no-border {" - " -GtkStatusbar-shadow-type: none;" - "}" - "#nautilus-extra-view-widget {" - " background-color: " EXTRA_VIEW_WIDGETS_BACKGROUND ";" - "}"; - - GError *error = NULL; - GtkCssProvider *provider = gtk_css_provider_new (); - gtk_css_provider_load_from_data (provider, css_custom, -1, &error); - - if (error != NULL) { - g_warning ("Can't parse NautilusWindow's CSS custom description: %s\n", error->message); - g_error_free (error); - } else { - gtk_style_context_add_provider (gtk_widget_get_style_context (GTK_WIDGET (window)), - GTK_STYLE_PROVIDER (provider), - GTK_STYLE_PROVIDER_PRIORITY_APPLICATION); - } - - g_object_unref (provider); - window->details = G_TYPE_INSTANCE_GET_PRIVATE (window, NAUTILUS_TYPE_WINDOW, NautilusWindowDetails); window->details->panes = NULL; |