[glide] Oh lookie here a default theme
- From: Robert Carr <racarr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glide] Oh lookie here a default theme
- Date: Thu, 6 May 2010 08:59:52 +0000 (UTC)
commit 10ffd8c6286239c46f50684cc6a9237bf26167f9
Author: Robert Carr <racarr Valentine localdomain>
Date: Thu May 6 05:00:29 2010 -0400
Oh lookie here a default theme
configure.ac | 2 ++
data/themes/Makefile.am | 6 +-----
data/themes/default.glide-theme | 2 --
data/themes/default/Makefile.am | 5 +++++
data/themes/default/background.png | Bin 0 -> 113526 bytes
data/themes/default/default.glide-theme.in | 2 ++
libglide/glide.c | 2 +-
7 files changed, 11 insertions(+), 8 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 7622fbe..40e7cd3 100644
--- a/configure.ac
+++ b/configure.ac
@@ -92,6 +92,8 @@ data/icons/hicolor/scalable/Makefile
data/icons/hicolor/scalable/apps/Makefile
data/ui/Makefile
data/themes/Makefile
+data/themes/default/Makefile
+data/themes/default/default.glide-theme
libglide/Makefile
po/Makefile.in
src/Makefile
diff --git a/data/themes/Makefile.am b/data/themes/Makefile.am
index 856267d..3af0a77 100644
--- a/data/themes/Makefile.am
+++ b/data/themes/Makefile.am
@@ -1,5 +1 @@
-themedir=$(datadir)/glide/themes
-theme_DATA = default.glide-theme
-
-EXTRA_DIST = \
- $(theme_DATA)
\ No newline at end of file
+SUBDIRS=default
\ No newline at end of file
diff --git a/data/themes/default/Makefile.am b/data/themes/default/Makefile.am
new file mode 100644
index 0000000..ebabf87
--- /dev/null
+++ b/data/themes/default/Makefile.am
@@ -0,0 +1,5 @@
+themedir=$(datadir)/glide/themes/default
+theme_DATA = default.glide-theme background.png
+
+EXTRA_DIST = \
+ $(theme_DATA)
\ No newline at end of file
diff --git a/data/themes/default/background.png b/data/themes/default/background.png
new file mode 100644
index 0000000..ceeecbe
Binary files /dev/null and b/data/themes/default/background.png differ
diff --git a/data/themes/default/default.glide-theme.in b/data/themes/default/default.glide-theme.in
new file mode 100644
index 0000000..5dbbc0b
--- /dev/null
+++ b/data/themes/default/default.glide-theme.in
@@ -0,0 +1,2 @@
+{"name":"Default Glide Theme",
+"default_background":"@prefix@/share/glide/themes/default/background.png"}
\ No newline at end of file
diff --git a/libglide/glide.c b/libglide/glide.c
index 536c81f..9e76cfb 100644
--- a/libglide/glide.c
+++ b/libglide/glide.c
@@ -110,7 +110,7 @@ static void
glide_load_default_theme ()
{
gchar *theme_dir = glide_dirs_get_glide_theme_dir ();
- gchar *theme_path = g_strconcat (theme_dir, "/default.glide-theme", NULL);
+ gchar *theme_path = g_strconcat (theme_dir, "/default/default.glide-theme", NULL);
default_theme = glide_theme_new (theme_path);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]