From 082c1ce38909ba5cd85d8de84329f7f82dd0a77f Mon Sep 17 00:00:00 2001 From: Nikias Bassen Date: Wed, 16 Dec 2009 12:53:44 +0100 Subject: Replaced dock.png with a full screen background.png Also included the picture in the autofoo stuff. --- .gitignore | 1 + Makefile.am | 2 +- configure.ac | 2 ++ data/Makefile.am | 7 +++++++ data/background.png | Bin 0 -> 19869 bytes data/data.h.in | 1 + src/dock.png | Bin 15852 -> 0 bytes src/sbmanager.c | 8 +++++--- 8 files changed, 17 insertions(+), 4 deletions(-) create mode 100644 data/Makefile.am create mode 100644 data/background.png create mode 100644 data/data.h.in delete mode 100644 src/dock.png diff --git a/.gitignore b/.gitignore index 3c6c3a8..58b2f17 100644 --- a/.gitignore +++ b/.gitignore @@ -31,3 +31,4 @@ libtool stamp-h1 src/.libs src/sbmanager +data/data.h diff --git a/Makefile.am b/Makefile.am index 4c3e7c3..9166b4a 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,4 +1,4 @@ AUTOMAKE_OPTIONS = foreign ACLOCAL_AMFLAGS = -I m4 -SUBDIRS = src +SUBDIRS = src data diff --git a/configure.ac b/configure.ac index f90dd41..52da2ca 100644 --- a/configure.ac +++ b/configure.ac @@ -49,5 +49,7 @@ m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])]) AC_OUTPUT([ Makefile src/Makefile +data/data.h +data/Makefile ]) diff --git a/data/Makefile.am b/data/Makefile.am new file mode 100644 index 0000000..fe8325a --- /dev/null +++ b/data/Makefile.am @@ -0,0 +1,7 @@ +pixmapdir = $(pkgdatadir) + +PIX = background.png + +pixmap_DATA = $(PIX) + +EXTRA_DIST = $(pixmap_DATA) diff --git a/data/background.png b/data/background.png new file mode 100644 index 0000000..7077fa1 Binary files /dev/null and b/data/background.png differ diff --git a/data/data.h.in b/data/data.h.in new file mode 100644 index 0000000..3c7e521 --- /dev/null +++ b/data/data.h.in @@ -0,0 +1 @@ +#define BGPIC "@prefix@/share/sbmanager/background.png" diff --git a/src/dock.png b/src/dock.png deleted file mode 100644 index 9e4d49c..0000000 Binary files a/src/dock.png and /dev/null differ diff --git a/src/sbmanager.c b/src/sbmanager.c index ad17a92..5ca4637 100644 --- a/src/sbmanager.c +++ b/src/sbmanager.c @@ -32,6 +32,8 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA #include #include +#include "../data/data.h" + #define ITEM_FONT "Sans Bold 7" typedef struct { @@ -509,16 +511,16 @@ int main(int argc, char **argv) /* dock background */ GError *err = NULL; - actor = clutter_texture_new_from_file("./dock.png", &err); + actor = clutter_texture_new_from_file(BGPIC, &err); if (err) { g_error_free(err); } if (actor) { - clutter_actor_set_position(actor, 0, clutter_actor_get_height(stage) - clutter_actor_get_height(actor)); + clutter_actor_set_position(actor, 0, 0); clutter_actor_show(actor); clutter_group_add (CLUTTER_GROUP(stage), actor); } else { - fprintf(stderr, "could not load dock.png\n"); + fprintf(stderr, "could not load background.png\n"); } /* clock widget */ -- cgit v1.1-32-gdbae