[nautilus] theming: cleanup previous manually parsed CSS
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] theming: cleanup previous manually parsed CSS
- Date: Wed, 15 Dec 2010 18:38:52 +0000 (UTC)
commit 08f71aa76cd5f250613f4a2833b43a72831974fc
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Wed Dec 15 19:37:14 2010 +0100
theming: cleanup previous manually parsed CSS
It's not required anymore, now that we have a proper stylesheet.
src/nautilus-notebook.c | 23 -----------------------
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 8663c08..38a2590 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 9132c35..a4bcc7a 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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]