#include <gtk/gtk.h>
#include <hildon/hildon.h>
#include "livewp-home-widget.h"
-#include <libhildondesktop/libhildondesktop.h>
#include <gconf/gconf-client.h>
#include "livewp-rules.h"
#define Animation_Wallpaper_HOME_PLUGIN_GET_PRIVATE(obj) (G_TYPE_INSTANCE_GET_PRIVATE (obj,\
Animation_Wallpaper_TYPE_HOME_PLUGIN,\
Animation_WallpaperPrivate))
-struct _Animation_WallpaperPrivate
-{
- gpointer data;
-};
/* Position of plugin on desktop */
event);
}
-gboolean
+static gboolean
expose_event (GtkWidget *widget,GdkEventExpose *event,
gpointer data)
{
return TRUE;
}
-void
+static void
realize (GtkWidget *widget)
{
GdkScreen *screen;
gtk_widget_set_colormap (widget, gdk_screen_get_rgba_colormap (screen));
}
-/* set position of widget on desktop */
-void
+/* Set position of widget on desktop */
+static void
init_applet_position(void)
{
GSList *position = NULL;
g_object_unref(gconf_client);
}
+static void
actor_set_position_full(GtkWidget *actor, gint x, gint y, gint z)
{
fprintf(stderr, "actor_set_position_full\n");
hildon_animation_actor_set_position_full (HILDON_ANIMATION_ACTOR (actor),x-xapplet, y-yapplet, z);
}
-GtkWidget* init_object(gchar * name, gint x, gint y, gint z, gint width, gint height)
+static GtkWidget*
+init_object(gchar * name, gint x, gint y, gint z, gint width, gint height)
{
Actor a;
GtkWidget *actor;
actor = hildon_animation_actor_new();
gchar str[256];
snprintf(str, 255, "/usr/share/anwall/%s.png", name);
- //fprintf(stderr, "!!!init object !!!!\nname = %s file = %s\n", name, str);
+ /* fprintf(stderr, "!!!init object !!!!\nname = %s file = %s\n", name, str); */
pixbuf = gdk_pixbuf_new_from_file_at_size (str,
width,
height,
return actor;
}
-void
+static void
init_scene(GtkWidget *window)
{
GtkWidget *actor;
}
-static void
-example_label_home_applet_realize (GtkWidget *widget)
-{
-}
-void get_sun_screen_pos(double alt, double azm, gint * x, gint * y)
+static void
+get_sun_screen_pos(double alt, double azm, gint * x, gint * y)
{
gint y0 = 400;// - уровень горизонта
gint o_width = 128,
*y = (int)((1 - alt) * y0) - 64;
}
-void change_actor(GtkWidget * actor)
+static void
+change_actor(GtkWidget * actor)
{
char * name;
gint x, y, daytime, sc;
fprintf(stderr, "on timeout\n");
if (scene.daytime == daytime){
- // change dynamic actors
+ /* Change dynamic actors */
tmp = scene.dynamic_actors;
}else {
- // change static actors
+ /* Change static actors */
tmp = scene.dynamic_actors;
}
while (tmp != NULL){