diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2009-01-11 07:41:27 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@src.gnome.org> | 2009-01-11 07:41:27 +0800 |
commit | 97e48e352419d360934a46a05c944d604fd968e9 (patch) | |
tree | 6b1c49723c0858902baf7acd24e0e3d25bfb6749 /calendar/gui/calendar-config.c | |
parent | dab08c513e7bf5f7c0f52c42ff245f940601b866 (diff) | |
download | gsoc2013-evolution-97e48e352419d360934a46a05c944d604fd968e9.tar gsoc2013-evolution-97e48e352419d360934a46a05c944d604fd968e9.tar.gz gsoc2013-evolution-97e48e352419d360934a46a05c944d604fd968e9.tar.bz2 gsoc2013-evolution-97e48e352419d360934a46a05c944d604fd968e9.tar.lz gsoc2013-evolution-97e48e352419d360934a46a05c944d604fd968e9.tar.xz gsoc2013-evolution-97e48e352419d360934a46a05c944d604fd968e9.tar.zst gsoc2013-evolution-97e48e352419d360934a46a05c944d604fd968e9.zip |
** Fixes bug #567276
2009-01-10 Matthew Barnes <mbarnes@redhat.com>
** Fixes bug #567276
* addressbook/gui/widgets/e-addressbook-view.c:
* addressbook/printing/test-print.c:
* calendar/gui/calendar-commands.c:
* calendar/gui/control-factory.c:
* calendar/gui/e-itip-control.c:
* calendar/gui/gnome-cal.c:
* calendar/gui/goto.c:
* calendar/gui/memos-control.c:
* calendar/gui/print.c:
* calendar/gui/tasks-control.c:
* calendar/gui/alarm-notify/alarm-queue.c:
* calendar/gui/dialogs/schedule-page.c:
* widgets/menus/gal-view-menus.c:
Remove unneeded #include <libgnomeui/gnome-dialog-util.h>.
* calendar/gui/calendar-config.c:
* calendar/gui/calendar-config.h:
Removed unused function calendar_config_check_timezone_set().
* widgets/misc/test-color.c:
We don't ship this. Remove it.
svn path=/trunk/; revision=37030
Diffstat (limited to 'calendar/gui/calendar-config.c')
-rw-r--r-- | calendar/gui/calendar-config.c | 61 |
1 files changed, 0 insertions, 61 deletions
diff --git a/calendar/gui/calendar-config.c b/calendar/gui/calendar-config.c index 60c128b0cd..484695fee8 100644 --- a/calendar/gui/calendar-config.c +++ b/calendar/gui/calendar-config.c @@ -31,7 +31,6 @@ #include <string.h> #include <time.h> -#include <libgnomeui/gnome-dialog.h> #include <libedataserver/e-data-server-util.h> #include <e-util/e-util.h> #include <widgets/e-timezone-dialog/e-timezone-dialog.h> @@ -47,13 +46,6 @@ static GConfClient *config = NULL; /* Store the zones here, this is not destroyed as the ical timezones */ static GHashTable *custom_zones = NULL; -static void on_timezone_set (GnomeDialog *dialog, - int button, - ETimezoneDialog *etd); -static gboolean on_timezone_dialog_delete_event (GnomeDialog *dialog, - GdkEvent *event, - ETimezoneDialog *etd); - static void do_cleanup (void) { @@ -1240,59 +1232,6 @@ calendar_config_set_confirm_purge (gboolean confirm) gconf_client_set_bool (config, CALENDAR_CONFIG_PROMPT_PURGE, confirm, NULL); } -void -calendar_config_check_timezone_set (void) -{ - ETimezoneDialog *timezone_dialog; - GtkWidget *dialog; - GList *elem; - char *zone; - - zone = calendar_config_get_timezone (); - if (zone && zone[0]) - return; - - /* Show timezone dialog. */ - timezone_dialog = e_timezone_dialog_new (); - dialog = e_timezone_dialog_get_toplevel (timezone_dialog); - - /* Hide the cancel button, which is the 2nd button. */ - elem = g_list_nth (GNOME_DIALOG (dialog)->buttons, 1); - gtk_widget_hide (elem->data); - - g_signal_connect (dialog, "clicked", - G_CALLBACK (on_timezone_set), timezone_dialog); - g_signal_connect (dialog, "delete-event", - G_CALLBACK (on_timezone_dialog_delete_event), timezone_dialog); - - gtk_widget_show (dialog); -} - - -static void -on_timezone_set (GnomeDialog *dialog, - int button, - ETimezoneDialog *etd) -{ - icaltimezone *zone; - - zone = e_timezone_dialog_get_timezone (etd); - if (zone) - calendar_config_set_timezone (icaltimezone_get_location (zone)); - - g_object_unref (etd); -} - - -static gboolean -on_timezone_dialog_delete_event (GnomeDialog *dialog, - GdkEvent *event, - ETimezoneDialog *etd) -{ - g_object_unref (etd); - return TRUE; -} - /** * calendar_config_get_tasks_due_today_color: |