Changeset 394

Show
Ignore:
Timestamp:
09/17/07 00:08:28 (1 year ago)
Author:
bjourne
Message:

Ensure that GtkAnimView stops its timer before it gets killed.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • gtkimageview/src/gtkanimview.c

    r325 r394  
    2424 * <filename>./tests/ex-anim.c</filename> program for an example of 
    2525 * how this widget is used 
    26  * @short_description: Subclass of #GtkImageView capable of displaying 
    27  * animations. 
     26 * @short_description: Subclass of #GtkImageView capable of playing 
     27 * GIF animations. 
    2828 * 
    2929 * <para> 
     
    128128gtk_anim_view_finalize (GObject *object) 
    129129{ 
     130    gtk_anim_view_set_is_playing (GTK_ANIM_VIEW (object), FALSE); 
     131     
    130132    /* Chain up. */ 
    131133    G_OBJECT_CLASS (gtk_anim_view_parent_class)->finalize (object); 
     
    274276    aview->delay = gdk_pixbuf_animation_iter_get_delay_time (aview->iter); 
    275277    aview->timer_id = g_timeout_add (aview->delay, 
    276                                      gtk_anim_view_updator, 
    277                                      aview); 
     278                                     gtk_anim_view_updator, aview); 
    278279} 
    279280 
    280281/** 
    281282 * gtk_anim_view_set_is_playing: 
    282  * @aview: A #GtkImageView. 
    283  * @playing: %TRUE to play the animation, %FALSE otherwise. 
     283 * @aview: a #GtkImageView 
     284 * @playing: %TRUE to play the animation, %FALSE otherwise 
    284285 * 
    285286 * Sets whether the animation should play or not. If there is no