diff options
Diffstat (limited to 'mail')
-rw-r--r-- | mail/ChangeLog | 9 | ||||
-rw-r--r-- | mail/folder-browser.c | 2 | ||||
-rw-r--r-- | mail/folder-info.c | 2 | ||||
-rw-r--r-- | mail/mail-account-gui.c | 2 | ||||
-rw-r--r-- | mail/mail-accounts.c | 2 | ||||
-rw-r--r-- | mail/mail-composer-prefs.c | 2 | ||||
-rw-r--r-- | mail/mail-font-prefs.c | 2 |
7 files changed, 15 insertions, 6 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog index db17f21f88..ca13021491 100644 --- a/mail/ChangeLog +++ b/mail/ChangeLog @@ -1,5 +1,14 @@ 2002-11-13 Ettore Perazzoli <ettore@ximian.com> + * folder-info.c (evolution_folder_info_factory_fn): Use + g_object_new() instead of gtk_type_new(). + * folder-browser.c (folder_browser_new): Likewise. + * mail-account-gui.c + (mail_account_gui_folder_selector_button_new): Likewise. + * mail-font-prefs.c (mail_font_prefs_new): Likewise. + +2002-11-13 Ettore Perazzoli <ettore@ximian.com> + * mail-format.c: Do not #include <libgnome/gnome-defs.h>. * mail-importer.c: Likewise. * mail-mt.c: Likewise. diff --git a/mail/folder-browser.c b/mail/folder-browser.c index fee9adc3a2..1296863978 100644 --- a/mail/folder-browser.c +++ b/mail/folder-browser.c @@ -2569,7 +2569,7 @@ folder_browser_new (const GNOME_Evolution_Shell shell, const char *uri) CORBA_exception_init (&ev); - folder_browser = gtk_type_new (folder_browser_get_type ()); + folder_browser = g_object_new (folder_browser_get_type (), NULL); my_folder_browser_init (folder_browser); diff --git a/mail/folder-info.c b/mail/folder-info.c index 1a31cba597..e072af4b9a 100644 --- a/mail/folder-info.c +++ b/mail/folder-info.c @@ -233,7 +233,7 @@ evolution_folder_info_factory_fn (BonoboGenericFactory *factory, EvolutionFolderInfo *info; BonoboPropertyBag *pb; - info = gtk_type_new (evolution_folder_info_get_type ()); + info = g_object_new (evolution_folder_info_get_type (), NULL); pb = bonobo_property_bag_new (get_prop, set_prop, info); info->pb = pb; /* Add properties */ diff --git a/mail/mail-account-gui.c b/mail/mail-account-gui.c index 935f95585a..a4300eab2e 100644 --- a/mail/mail-account-gui.c +++ b/mail/mail-account-gui.c @@ -1062,7 +1062,7 @@ mail_account_gui_folder_selector_button_new (char *widget_name, char *string1, char *string2, int int1, int int2) { - return (GtkWidget *)gtk_type_new (EVOLUTION_TYPE_FOLDER_SELECTOR_BUTTON); + return (GtkWidget *)g_object_new (EVOLUTION_TYPE_FOLDER_SELECTOR_BUTTON, NULL); } static gboolean diff --git a/mail/mail-accounts.c b/mail/mail-accounts.c index 784805481c..f946ddc8f0 100644 --- a/mail/mail-accounts.c +++ b/mail/mail-accounts.c @@ -633,7 +633,7 @@ mail_accounts_tab_new (GNOME_Evolution_Shell shell) { MailAccountsTab *new; - new = (MailAccountsTab *) gtk_type_new (mail_accounts_tab_get_type ()); + new = (MailAccountsTab *) g_object_new (mail_accounts_tab_get_type (), NULL); mail_accounts_tab_construct (new); new->shell = shell; diff --git a/mail/mail-composer-prefs.c b/mail/mail-composer-prefs.c index c6e03f6860..f6621e3be3 100644 --- a/mail/mail-composer-prefs.c +++ b/mail/mail-composer-prefs.c @@ -900,7 +900,7 @@ mail_composer_prefs_new (void) { MailComposerPrefs *new; - new = (MailComposerPrefs *) gtk_type_new (mail_composer_prefs_get_type ()); + new = (MailComposerPrefs *) g_object_new (mail_composer_prefs_get_type (), NULL); mail_composer_prefs_construct (new); return (GtkWidget *) new; diff --git a/mail/mail-font-prefs.c b/mail/mail-font-prefs.c index 0af7fc1fa7..0d26f1ccbd 100644 --- a/mail/mail-font-prefs.c +++ b/mail/mail-font-prefs.c @@ -35,7 +35,7 @@ mail_font_prefs_new (void) { MailFontPrefs *new; - new = MAIL_FONT_PREFS (gtk_type_new (mail_font_prefs_get_type ())); + new = MAIL_FONT_PREFS (g_object_new (mail_font_prefs_get_type ()), NULL); return GTK_WIDGET (new); } |