From 6989b2cc5b4bfbe79b6dcf39e2db862c8cb01152 Mon Sep 17 00:00:00 2001 From: Kjartan Maraas Date: Thu, 30 Sep 2004 08:53:05 +0000 Subject: Use non-deprecated functions. 2004-09-30 Kjartan Maraas * e-msg-composer.c: (autosave_manager_start), (autosave_manager_stop), (create_composer): Use non-deprecated functions. svn path=/trunk/; revision=27436 --- composer/ChangeLog | 6 ++++++ composer/e-msg-composer.c | 6 +++--- 2 files changed, 9 insertions(+), 3 deletions(-) (limited to 'composer') diff --git a/composer/ChangeLog b/composer/ChangeLog index edd6395386..0815dbe397 100644 --- a/composer/ChangeLog +++ b/composer/ChangeLog @@ -1,3 +1,9 @@ +2004-09-30 Kjartan Maraas + + * e-msg-composer.c: (autosave_manager_start), + (autosave_manager_stop), (create_composer): Use non-deprecated + functions. + 2004-08-17 Michael Meeks * e-msg-composer.c (handle_mailto): handle 'attachment' as diff --git a/composer/e-msg-composer.c b/composer/e-msg-composer.c index e72df878f8..67b3ea8f1c 100644 --- a/composer/e-msg-composer.c +++ b/composer/e-msg-composer.c @@ -1444,14 +1444,14 @@ static void autosave_manager_start (AutosaveManager *am) { if (am->id == 0) - am->id = gtk_timeout_add (AUTOSAVE_INTERVAL, autosave_run, am); + am->id = g_timeout_add (AUTOSAVE_INTERVAL, autosave_run, am); } static void autosave_manager_stop (AutosaveManager *am) { if (am->id) { - gtk_timeout_remove (am->id); + g_source_remove (am->id); am->id = 0; } } @@ -3280,7 +3280,7 @@ create_composer (int visible_mask) composer->attachment_expander_icon = gtk_image_new_from_pixbuf (attachment_pixbuf); gtk_misc_set_alignment (GTK_MISC (composer->attachment_expander_icon), 1, 0.5); gtk_widget_set_size_request (composer->attachment_expander_icon, 100, -1); - gdk_pixbuf_unref (attachment_pixbuf); + g_object_unref (attachment_pixbuf); gtk_box_pack_start (GTK_BOX (expander_hbox), composer->attachment_expander_label, TRUE, TRUE, 0); -- cgit