done native background in theme Accel
authortanya <tanyshk@gmail.com>
Thu, 19 Aug 2010 08:12:51 +0000 (11:12 +0300)
committertanya <tanyshk@gmail.com>
Thu, 19 Aug 2010 08:12:51 +0000 (11:12 +0300)
applet/src/livewp-actor.c
applet/src/livewp-scene.c

index a1da1d9..c48e3a5 100644 (file)
@@ -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, 
index 496ea47..64e9cc8 100644 (file)
@@ -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);