Mercurial > pidgin
changeset 9855:b23e6f9c4d2e
[gaim-migrate @ 10734]
Non C99ers rejoice.
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Tue, 24 Aug 2004 23:32:15 +0000 |
parents | e389922bdea7 |
children | fdf71e2f31ac |
files | plugins/gestures/stroke-draw.c |
diffstat | 1 files changed, 11 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/gestures/stroke-draw.c Tue Aug 24 22:08:53 2004 +0000 +++ b/plugins/gestures/stroke-draw.c Tue Aug 24 23:32:15 2004 +0000 @@ -33,16 +33,16 @@ #define GSTROKE_SIGNALS "gstroke_signals" struct gstroke_func_and_data { - void (*func)(GtkWidget *, void *); - gpointer data; + void (*func)(GtkWidget *, void *); + gpointer data; }; /*FIXME: maybe it's better to just make 2 static variables, not a structure */ struct mouse_position { - struct s_point last_point; - gboolean invalid; + struct s_point last_point; + gboolean invalid; }; @@ -97,11 +97,14 @@ static gint gstroke_timeout (gpointer data) { - g_return_val_if_fail(data != NULL, FALSE); - GtkWidget *widget = GTK_WIDGET (data); - record_stroke_segment (widget); + GtkWidget *widget; + + g_return_val_if_fail(data != NULL, FALSE); - return TRUE; + widget = GTK_WIDGET (data); + record_stroke_segment (widget); + + return TRUE; } static void gstroke_cancel(GdkEvent *event)