diff options
author | JP Rosevear <jpr@ximian.com> | 2004-01-21 14:10:22 +0800 |
---|---|---|
committer | JP Rosevear <jpr@src.gnome.org> | 2004-01-21 14:10:22 +0800 |
commit | ce34605741e3522a875ba2449ed752a9eb7df601 (patch) | |
tree | 722f7340b8060364a418c749b4667928e6b50c07 /calendar/gui | |
parent | 88affd57edfe457b51cd776f656a4143375cf7c3 (diff) | |
download | gsoc2013-evolution-ce34605741e3522a875ba2449ed752a9eb7df601.tar.gz gsoc2013-evolution-ce34605741e3522a875ba2449ed752a9eb7df601.tar.zst gsoc2013-evolution-ce34605741e3522a875ba2449ed752a9eb7df601.zip |
just use the convienence function for the default gconf client (fixes
2004-01-21 JP Rosevear <jpr@ximian.com>
* gui/dialogs/calendar-setup.c (calendar_setup_new_calendar): just
use the convienence function for the default gconf client (fixes
leak)
(calendar_setup_new_task_list): ditto
svn path=/trunk/; revision=24345
Diffstat (limited to 'calendar/gui')
-rw-r--r-- | calendar/gui/dialogs/calendar-setup.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/calendar/gui/dialogs/calendar-setup.c b/calendar/gui/dialogs/calendar-setup.c index e493108e86..cf48fcd32c 100644 --- a/calendar/gui/dialogs/calendar-setup.c +++ b/calendar/gui/dialogs/calendar-setup.c @@ -498,7 +498,6 @@ gboolean calendar_setup_new_calendar (GtkWindow *parent) { SourceDialog *source_dialog = g_new0 (SourceDialog, 1); - GConfClient *gconf_client; GtkWidget *page; source_dialog->gui_xml = glade_xml_new (EVOLUTION_GLADEDIR "/" GLADE_FILE_NAME, "calendar-druid-window", NULL); @@ -521,9 +520,7 @@ calendar_setup_new_calendar (GtkWindow *parent) g_signal_connect_after (page, "next", G_CALLBACK (general_page_forward), source_dialog); - gconf_client = gconf_client_get_default (); - source_dialog->source_list = - e_source_list_new_for_gconf (gconf_client, "/apps/evolution/calendar/sources"); + source_dialog->source_list = e_source_list_new_for_gconf_default ("/apps/evolution/calendar/sources"); source_dialog->group_optionmenu = glade_xml_get_widget (source_dialog->gui_xml, "group-optionmenu"); if (!GTK_IS_MENU (gtk_option_menu_get_menu (GTK_OPTION_MENU (source_dialog->group_optionmenu)))) { @@ -663,7 +660,6 @@ gboolean calendar_setup_new_task_list (GtkWindow *parent) { SourceDialog *source_dialog = g_new0 (SourceDialog, 1); - GConfClient *gconf_client; GtkWidget *page; source_dialog->gui_xml = glade_xml_new (EVOLUTION_GLADEDIR "/" GLADE_FILE_NAME, "task-list-druid-window", NULL); @@ -684,9 +680,7 @@ calendar_setup_new_task_list (GtkWindow *parent) g_signal_connect_after (page, "prepare", G_CALLBACK (general_page_prepare), source_dialog); - gconf_client = gconf_client_get_default (); - source_dialog->source_list = - e_source_list_new_for_gconf (gconf_client, "/apps/evolution/tasks/sources"); + source_dialog->source_list = e_source_list_new_for_gconf_default ("/apps/evolution/tasks/sources"); source_dialog->group_optionmenu = glade_xml_get_widget (source_dialog->gui_xml, "group-optionmenu"); if (!GTK_IS_MENU (gtk_option_menu_get_menu (GTK_OPTION_MENU (source_dialog->group_optionmenu)))) { |