From: tanya Date: Thu, 19 Aug 2010 08:12:51 +0000 (+0300) Subject: done native background in theme Accel X-Git-Url: https://vcs.maemo.org/git/?a=commitdiff_plain;h=c3a5c0d04906aec9738ca02a96b6f632c30280e6;p=livewp done native background in theme Accel --- diff --git a/applet/src/livewp-actor.c b/applet/src/livewp-actor.c index a1da1d9..c48e3a5 100644 --- a/applet/src/livewp-actor.c +++ b/applet/src/livewp-actor.c @@ -97,7 +97,10 @@ create_hildon_actor(Actor *actor, AWallpaperPlugin *desktop_plugin) gchar *str = NULL; ha = hildon_animation_actor_new(); - str = g_strdup_printf( "%s/%s/%s", THEME_PATH, + if (!strcmp(actor->name, "original")) + str = g_strdup(actor->filename); + else + str = g_strdup_printf( "%s/%s/%s", THEME_PATH, desktop_plugin->priv->theme, actor->filename); pixbuf = gdk_pixbuf_new_from_file_at_size (str, actor->width, diff --git a/applet/src/livewp-scene.c b/applet/src/livewp-scene.c index 496ea47..64e9cc8 100644 --- a/applet/src/livewp-scene.c +++ b/applet/src/livewp-scene.c @@ -76,6 +76,7 @@ init_scene_Accel(AWallpaperPlugin *desktop_plugin) GPtrArray *child; gint now = time(NULL); gchar *str; + gchar *bgfile = NULL; gint sizes1[4] = {57, 76, 43, 50}, n, j; @@ -84,7 +85,8 @@ init_scene_Accel(AWallpaperPlugin *desktop_plugin) scene->actors = NULL; desktop_plugin->priv->scene = scene; - actor = init_object(desktop_plugin, "background", "bg.png", + bgfile = g_strdup_printf("/home/user/.backgrounds/background-%i.png", desktop_plugin->priv->view); + actor = init_object(desktop_plugin, "original", bgfile, 0, 0, 0, 800, 480, TRUE, TRUE, 100, 255, NULL, NULL, NULL);