diff options
author | Carlos Garnacho <carlosg@gnome.org> | 2010-11-22 03:43:56 +0100 |
---|---|---|
committer | Carlos Garnacho <carlosg@gnome.org> | 2010-12-04 15:39:25 +0100 |
commit | 32ccac94e0bdd3ba24c53a679f1796cba0c84b73 (patch) | |
tree | 035f4409b253404eef65c258b0aee5c10a75e667 /gtk/gtkanimationdescription.c | |
parent | 0c1cfd8a341bb3da485387a4cca9dcef0284780a (diff) | |
download | gtk+-32ccac94e0bdd3ba24c53a679f1796cba0c84b73.tar.gz |
GtkAnimationDescription: parse "loop" correctly.
This sscanf parsing needs to go...
Diffstat (limited to 'gtk/gtkanimationdescription.c')
-rw-r--r-- | gtk/gtkanimationdescription.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gtk/gtkanimationdescription.c b/gtk/gtkanimationdescription.c index cef6ade0c8..785018ad37 100644 --- a/gtk/gtkanimationdescription.c +++ b/gtk/gtkanimationdescription.c @@ -84,11 +84,12 @@ gtk_animation_description_from_string (const gchar *str) { gchar timing_function[16] = { 0, }; gchar duration_unit[3] = { 0, }; + gchar loop_str[5] = { 0, }; GtkTimelineProgressType progress_type; guint duration = 0; gboolean loop; - if (sscanf (str, "%d%2s %15s loop", &duration, duration_unit, timing_function) == 3) + if (sscanf (str, "%d%2s %15s %5s", &duration, duration_unit, timing_function, loop_str) == 4) loop = TRUE; else if (sscanf (str, "%d%2s %15s", &duration, duration_unit, timing_function) == 3) loop = FALSE; |