Replaced dock.png with a full screen background.png

Also included the picture in the autofoo stuff.
This commit is contained in:
Nikias Bassen
2009-12-16 12:53:44 +01:00
parent 6a6e03d596
commit 082c1ce389
8 changed files with 17 additions and 4 deletions
+1
View File
@@ -31,3 +31,4 @@ libtool
stamp-h1
src/.libs
src/sbmanager
data/data.h
+1 -1
View File
@@ -1,4 +1,4 @@
AUTOMAKE_OPTIONS = foreign
ACLOCAL_AMFLAGS = -I m4
SUBDIRS = src
SUBDIRS = src data
+2
View File
@@ -49,5 +49,7 @@ m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])])
AC_OUTPUT([
Makefile
src/Makefile
data/data.h
data/Makefile
])
+7
View File
@@ -0,0 +1,7 @@
pixmapdir = $(pkgdatadir)
PIX = background.png
pixmap_DATA = $(PIX)
EXTRA_DIST = $(pixmap_DATA)
Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

+1
View File
@@ -0,0 +1 @@
#define BGPIC "@prefix@/share/sbmanager/background.png"
BIN
View File
Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

+5 -3
View File
@@ -32,6 +32,8 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
#include <clutter-gtk/clutter-gtk.h>
#include <gdk-pixbuf/gdk-pixbuf.h>
#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 */