diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2006-12-04 23:41:30 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@src.gnome.org> | 2006-12-04 23:41:30 +0800 |
commit | 79f8ecbd0d28dfb399e2275a3a18d8ed96415232 (patch) | |
tree | e6275d5b92d89797b43bf24c7abfa07dac9f0aa4 /calendar/gui/e-day-view.c | |
parent | f2db40b45db31c41660bb692bc91f90c49c6939e (diff) | |
download | gsoc2013-evolution-79f8ecbd0d28dfb399e2275a3a18d8ed96415232.tar.gz gsoc2013-evolution-79f8ecbd0d28dfb399e2275a3a18d8ed96415232.tar.zst gsoc2013-evolution-79f8ecbd0d28dfb399e2275a3a18d8ed96415232.zip |
Fixes bug #357970
2006-12-04 Matthew Barnes <mbarnes@redhat.com>
Fixes bug #357970
* gui/e-alarm-list.c:
* gui/e-calendar-table.c:
* gui/e-day-view.c:
* gui/e-meeting-attendee.c:
* gui/e-meeting-store.c:
* gui/e-meeting-time-sel-item.c:
* gui/e-meeting-time-sel.c:
* gui/e-week-view-main-item.c:
* gui/e-week-view.c:
* gui/gnome-cal.c:
* gui/goto.c:
* gui/dialogs/event-page.c:
* gui/dialogs/task-page.c:
Don't call deprecated GLib / GDK functions.
svn path=/trunk/; revision=33045
Diffstat (limited to 'calendar/gui/e-day-view.c')
-rw-r--r-- | calendar/gui/e-day-view.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/calendar/gui/e-day-view.c b/calendar/gui/e-day-view.c index cb10faac3f..23fe92437e 100644 --- a/calendar/gui/e-day-view.c +++ b/calendar/gui/e-day-view.c @@ -1529,7 +1529,7 @@ e_day_view_unrealize (GtkWidget *widget) day_view = E_DAY_VIEW (widget); - gdk_gc_unref (day_view->main_gc); + g_object_unref (day_view->main_gc); day_view->main_gc = NULL; colormap = gtk_widget_get_colormap (widget); @@ -2752,7 +2752,7 @@ e_day_view_find_work_week_start (EDayView *day_view, week start day. */ /* Get the weekday corresponding to start_time, 0 (Sun) to 6 (Sat). */ - weekday = g_date_weekday (&date) % 7; + weekday = g_date_get_weekday (&date) % 7; /* Calculate the first working day of the week, 0 (Sun) to 6 (Sat). It will automatically default to the week start day if no days @@ -2773,9 +2773,9 @@ e_day_view_find_work_week_start (EDayView *day_view, g_date_subtract_days (&date, offset); } - tt.year = g_date_year (&date); - tt.month = g_date_month (&date); - tt.day = g_date_day (&date); + tt.year = g_date_get_year (&date); + tt.month = g_date_get_month (&date); + tt.day = g_date_get_day (&date); return icaltime_as_timet_with_zone (tt, e_calendar_view_get_timezone (E_CALENDAR_VIEW (day_view))); } @@ -3471,7 +3471,7 @@ e_day_view_convert_event_coords (EDayView *day_view, } while (event_window && event_window != window - && event_window != GDK_ROOT_PARENT()) { + && event_window != gdk_get_default_root_window ()) { gdk_window_get_position (event_window, &win_x, &win_y); event_x += win_x; event_y += win_y; |