[evolution-patches] Cleanups of deprecated functions for the composer component
- From: Kjartan Maraas <kmaraas broadpark no>
- To: evolution-patches ximian com
- Subject: [evolution-patches] Cleanups of deprecated functions for the composer component
- Date: Wed, 29 Sep 2004 22:12:37 +0200
Same as before for the composer.
Cheers
Kjartan
Index: e-msg-composer-attachment.c
===================================================================
RCS file: /cvs/gnome/evolution/composer/e-msg-composer-attachment.c,v
retrieving revision 1.55
diff -u -p -r1.55 e-msg-composer-attachment.c
--- e-msg-composer-attachment.c 20 Sep 2004 05:59:54 -0000 1.55
+++ e-msg-composer-attachment.c 29 Sep 2004 20:12:04 -0000
@@ -456,8 +456,8 @@ e_msg_composer_attachment_edit (EMsgComp
#warning "signal connect while alive"
/* make sure that when the composer gets hidden/closed that our windows also close */
parent = gtk_widget_get_toplevel (parent);
- gtk_signal_connect_while_alive (GTK_OBJECT (parent), "destroy", (GCallback)close_cb, dialog_data,
+ g_signal_connect_while_alive (GTK_OBJECT (parent), "destroy", (GCallback)close_cb, dialog_data,
GTK_OBJECT (dialog_data->dialog));
- gtk_signal_connect_while_alive (GTK_OBJECT (parent), "hide", (GCallback)close_cb, dialog_data,
+ g_signal_connect_while_alive (GTK_OBJECT (parent), "hide", (GCallback)close_cb, dialog_data,
GTK_OBJECT (dialog_data->dialog));
}
Index: e-msg-composer.c
===================================================================
RCS file: /cvs/gnome/evolution/composer/e-msg-composer.c,v
retrieving revision 1.481
diff -u -p -r1.481 e-msg-composer.c
--- e-msg-composer.c 20 Sep 2004 15:21:59 -0000 1.481
+++ e-msg-composer.c 29 Sep 2004 20:12:05 -0000
@@ -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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]