#include "animation.h"
#ifdef HAVE_ANIMATION
-#include <glib/gtimer.h>
+#include <glib.h>
struct _AnimationInfo {
GTimer *timer;
/* ensures that the timer is running */
static void
-start_timer ()
+start_timer (void)
{
if (animation_timer_id == 0)
animation_timer_id = g_timeout_add (ANIMATION_DELAY, animation_timeout_handler, NULL);
/* ensures that the timer is stopped */
static void
-stop_timer ()
+stop_timer (void)
{
if (animation_timer_id != 0)
{
static gboolean
update_animation_info (gpointer key, gpointer value, gpointer user_data)
{
- AnimationInfo *animation_info = value;
+ AnimationInfo *animation_info;
GtkWidget *widget = key;
+ animation_info = value;
+ (void) user_data;
+
g_assert ((widget != NULL) && (animation_info != NULL));
/* remove the widget from the hash table if it is not drawable */
static gboolean
animation_timeout_handler (gpointer data)
{
+ (void) data;
+
/*g_print("** TICK **\n");*/
/* enter threads as update_animation_info will use gtk/gdk. */
static void
on_checkbox_toggle (GtkWidget *widget, gpointer data)
{
- AnimationInfo *animation_info = lookup_animation_info (widget);
+ AnimationInfo *animation_info;
+ (void) data;
+
+ animation_info = lookup_animation_info (widget);
if (animation_info != NULL)
{
static void
on_connected_widget_destruction (gpointer data, GObject *widget)
{
+ (void) widget;
+
connected_widgets = g_slist_remove (connected_widgets, data);
g_free (data);
}
static void
-disconnect_all_signals ()
+disconnect_all_signals (void)
{
GSList * item = connected_widgets;
while (item != NULL)
static gint
find_signal_info (gconstpointer signal_info, gconstpointer widget)
{
- if (((SignalInfo*)signal_info)->widget == widget)
+ if (((const SignalInfo*)signal_info)->widget == widget)
return 0;
else
return 1;
/* cleans up all resources of the animation system */
void
-clearlooks_animation_cleanup ()
+clearlooks_animation_cleanup (void)
{
disconnect_all_signals ();