small changes for structure
authorVlad Vasiliev <vlad@toshiba2.oblgaz>
Wed, 31 Mar 2010 22:17:30 +0000 (01:17 +0300)
committerVlad Vasiliev <vlad@toshiba2.oblgaz>
Wed, 31 Mar 2010 22:17:30 +0000 (01:17 +0300)
applet/src/livewp-home-widget.c
applet/src/livewp-home-widget.h

index 7bf512c..84b6996 100644 (file)
@@ -37,10 +37,9 @@ HD_DEFINE_PLUGIN_MODULE (AWallpaperPlugin, animation_wallpaper_plugin, HD_TYPE_H
                                                           Animation_Wallpaper_TYPE_HOME_PLUGIN,\
                                                           Animation_WallpaperPrivate))
 
-
 /* Position of plugin on desktop */
 #define Xstartposition 700 
-#define Ystartposition 425
+#define Ystartposition 425 
 
 gint xapplet = 0, yapplet = 0;
 GSList * objects_list = NULL;
@@ -373,7 +372,7 @@ change_actor(GtkWidget * actor)
 }
 
 static gboolean
-plugin_on_timeout (gpointer data)
+plugin_on_timeout (AWallpaperPlugin *desktop_plugin)
 {
   gint daytime = get_daytime();
   GSList * tmp;
@@ -448,7 +447,12 @@ static void
 animation_wallpaper_plugin_init (AWallpaperPlugin *desktop_plugin)
 {
   GtkWidget *label;
+/* This code doesn't work */
+//  fprintf(stderr,"ddddddddddddd\n");
+//  desktop_plugin->priv = Animation_Wallpaper_HOME_PLUGIN_GET_PRIVATE(desktop_plugin);
+//  fprintf(stderr,"ddddddddddddd\n");
   label = gtk_label_new (""); 
+  //desktop_plugin->priv->main_widget = label;
   gtk_widget_set_size_request(label, 95, 30);
   gtk_widget_show (label);
   hd_home_plugin_item_set_settings (HD_HOME_PLUGIN_ITEM (desktop_plugin), TRUE);
index 8aa868c..d49303f 100644 (file)
@@ -92,6 +92,7 @@ G_END_DECLS
 struct _Animation_WallpaperPrivate
 {
       gpointer data;
+      GtkWidget *main_widget;
 };
 void live_wallpaper_settings(GtkWidget *widget, gpointer user_data);
 MultiActor *multiactor_init(gchar * name, GSList * child, gint x, gint y, gint z, double scale, gboolean visible);