[nautilus] css: remove custom CSS stylesheet
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] css: remove custom CSS stylesheet
- Date: Wed, 7 Sep 2011 19:07:58 +0000 (UTC)
commit cbadf49a82c70bb6ef90d63fdc4b43f4cb108598
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Wed Sep 7 15:04:47 2011 -0400
css: remove custom CSS stylesheet
Our custom CSS stylesheet is actually very tied to Adwaita. We don't
want to force this style to other GTK+ themes, so the theming
information has been moved to Adwaita itself.
data/Makefile.am | 2 -
data/nautilus.css | 67 --------------------------------------------
src/nautilus-application.c | 19 ------------
3 files changed, 0 insertions(+), 88 deletions(-)
---
diff --git a/data/Makefile.am b/data/Makefile.am
index 19eddcd..882dada 100644
--- a/data/Makefile.am
+++ b/data/Makefile.am
@@ -31,13 +31,11 @@ nautilusdatadir = $(datadir)/nautilus
nautilusdata_DATA = \
nautilus-extras.placeholder \
nautilus-suggested.placeholder \
- nautilus.css \
$(NULL)
EXTRA_DIST = $(nautilusdata_DATA) \
nautilus.desktop \
nautilus.desktop.in \
- nautilus.css \
dbus-interfaces.xml \
$(xml_in_files) \
$(desktop_in_files) \
diff --git a/src/nautilus-application.c b/src/nautilus-application.c
index 1290ebd..9de115e 100644
--- a/src/nautilus-application.c
+++ b/src/nautilus-application.c
@@ -1044,25 +1044,6 @@ nautilus_application_local_command_line (GApplication *application,
static void
init_icons_and_styles (void)
{
- GtkCssProvider *provider;
- GError *error = NULL;
-
- /* add our custom CSS provider */
- provider = gtk_css_provider_new ();
- gtk_css_provider_load_from_path (provider,
- NAUTILUS_DATADIR G_DIR_SEPARATOR_S "nautilus.css", &error);
-
- if (error != NULL) {
- g_warning ("Can't parse Nautilus' CSS custom description: %s\n", error->message);
- g_error_free (error);
- } else {
- gtk_style_context_add_provider_for_screen (gdk_screen_get_default (),
- GTK_STYLE_PROVIDER (provider),
- GTK_STYLE_PROVIDER_PRIORITY_APPLICATION);
- }
-
- g_object_unref (provider);
-
/* initialize search path for custom icons */
gtk_icon_theme_append_search_path (gtk_icon_theme_get_default (),
NAUTILUS_DATADIR G_DIR_SEPARATOR_S "icons");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]