projects
/
ardour.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add -DPROGRAM_NAME to libpbd compile flags
[ardour.git]
/
libs
/
clearlooks-newer
/
animation.c
diff --git
a/libs/clearlooks-newer/animation.c
b/libs/clearlooks-newer/animation.c
index 24766aa907a2158c5d89baffe80ddaeedd7d0c89..8339ed7c195dceb36c92411b873a3a72f1837d8a 100644
(file)
--- a/
libs/clearlooks-newer/animation.c
+++ b/
libs/clearlooks-newer/animation.c
@@
-63,7
+63,7
@@
force_widget_redraw (GtkWidget *widget)
/* ensures that the timer is running */
static void
/* 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);
{
if (animation_timer_id == 0)
animation_timer_id = g_timeout_add (ANIMATION_DELAY, animation_timeout_handler, NULL);
@@
-71,7
+71,7
@@
start_timer ()
/* ensures that the timer is stopped */
static void
/* ensures that the timer is stopped */
static void
-stop_timer ()
+stop_timer (
void
)
{
if (animation_timer_id != 0)
{
{
if (animation_timer_id != 0)
{
@@
-159,11
+159,12
@@
add_animation (const GtkWidget *widget, gdouble stop_time)
static gboolean
update_animation_info (gpointer key, gpointer value, gpointer user_data)
{
static gboolean
update_animation_info (gpointer key, gpointer value, gpointer user_data)
{
- (void) user_data;
-
- AnimationInfo *animation_info = value;
+ AnimationInfo *animation_info;
GtkWidget *widget = key;
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 */
g_assert ((widget != NULL) && (animation_info != NULL));
/* remove the widget from the hash table if it is not drawable */
@@
-217,9
+218,10
@@
animation_timeout_handler (gpointer data)
static void
on_checkbox_toggle (GtkWidget *widget, gpointer data)
{
static void
on_checkbox_toggle (GtkWidget *widget, gpointer data)
{
+ AnimationInfo *animation_info;
(void) data;
(void) data;
-
AnimationInfo *
animation_info = lookup_animation_info (widget);
+ animation_info = lookup_animation_info (widget);
if (animation_info != NULL)
{
if (animation_info != NULL)
{
@@
-243,7
+245,7
@@
on_connected_widget_destruction (gpointer data, GObject *widget)
}
static void
}
static void
-disconnect_all_signals ()
+disconnect_all_signals (
void
)
{
GSList * item = connected_widgets;
while (item != NULL)
{
GSList * item = connected_widgets;
while (item != NULL)
@@
-265,7
+267,7
@@
disconnect_all_signals ()
static gint
find_signal_info (gconstpointer signal_info, gconstpointer widget)
{
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;
return 0;
else
return 1;
@@
-325,7
+327,7
@@
clearlooks_animation_elapsed (gpointer data)
/* cleans up all resources of the animation system */
void
/* cleans up all resources of the animation system */
void
-clearlooks_animation_cleanup ()
+clearlooks_animation_cleanup (
void
)
{
disconnect_all_signals ();
{
disconnect_all_signals ();