started fifteen again
authortanya <tanya@moshkanov.oblgaz>
Sat, 28 Aug 2010 21:21:18 +0000 (00:21 +0300)
committertanya <tanya@moshkanov.oblgaz>
Sat, 28 Aug 2010 21:21:18 +0000 (00:21 +0300)
applet/src/fifteen.c [new file with mode: 0644]
applet/src/livewp-actor.c

diff --git a/applet/src/fifteen.c b/applet/src/fifteen.c
new file mode 100644 (file)
index 0000000..c71c8fe
--- /dev/null
@@ -0,0 +1,28 @@
+#include <hildon/hildon.h>
+#include "livewp-common.h"
+#include "livewp-actor.h"
+int main( int   argc, char *argv[] )
+{
+    GtkWidget *window;
+    AWallpaperPlugin *desktop_plugin = g_new0 (AWallpaperPlugin, 1);
+    Animation_WallpaperPrivate *priv = g_new0 (Animation_WallpaperPrivate, 1);
+    Actor *actor;
+
+    hildon_gtk_init (&argc, &argv);
+    g_set_application_name ("Simplest example");
+    window = hildon_window_new ();
+    g_signal_connect (G_OBJECT (window), "delete_event",
+                        G_CALLBACK (gtk_main_quit), NULL);
+    priv->window = window;
+    priv->theme = g_strdup("Modern"); 
+    desktop_plugin->priv = priv;
+    actor = init_object(desktop_plugin, "sun", "sun.png", 
+                      10, 10, 6, 88, 88, 
+                      TRUE, TRUE, 100, 255, 
+                      NULL, NULL, NULL);
+    gtk_widget_show  (window);
+    gtk_main ();
+    return 0;
+}
+
+
index c48e3a5..5d5c509 100644 (file)
@@ -106,7 +106,6 @@ create_hildon_actor(Actor *actor, AWallpaperPlugin *desktop_plugin)
                                              actor->width, 
                                              actor->height, 
                                              NULL);
-  /* fprintf(stderr, "create_hildon_actor %s %s\n", actor->name, str); */
   if (str)
       g_free(str);
   if (pixbuf){
@@ -206,8 +205,9 @@ init_object(AWallpaperPlugin *desktop_plugin,
     actor->func_change = (gpointer)pfunc_change; 
     actor->func_probability = (gpointer)pfunc_probability;
     actor->child = child;
-    if (load_image)
+    if (load_image){
         create_hildon_actor(actor, desktop_plugin);
+    }
     else 
          actor->widget = NULL;
     actor->time_start_animation = 0;