[evolution] Bug #632769 - EMeetingTimeSelector can be unrealized in express mode
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution] Bug #632769 - EMeetingTimeSelector can be unrealized in express mode
- Date: Fri, 29 Oct 2010 12:31:59 +0000 (UTC)
commit e3b41081da24d7fb1cc945fd4ab2daef413e66bc
Author: Milan Crha <mcrha redhat com>
Date: Fri Oct 29 14:29:23 2010 +0200
Bug #632769 - EMeetingTimeSelector can be unrealized in express mode
calendar/gui/e-meeting-time-sel-item.c | 3 ++-
calendar/gui/e-meeting-time-sel.c | 3 ++-
2 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/calendar/gui/e-meeting-time-sel-item.c b/calendar/gui/e-meeting-time-sel-item.c
index 86afc39..102254d 100644
--- a/calendar/gui/e-meeting-time-sel-item.c
+++ b/calendar/gui/e-meeting-time-sel-item.c
@@ -1056,5 +1056,6 @@ e_meeting_time_selector_item_set_normal_cursor (EMeetingTimeSelectorItem *mts_it
canvas = GNOME_CANVAS_ITEM (mts_item)->canvas;
window = gtk_widget_get_window (GTK_WIDGET (canvas));
- gdk_window_set_cursor (window, mts_item->normal_cursor);
+ if (window)
+ gdk_window_set_cursor (window, mts_item->normal_cursor);
}
diff --git a/calendar/gui/e-meeting-time-sel.c b/calendar/gui/e-meeting-time-sel.c
index 5041565..ae82b8c 100644
--- a/calendar/gui/e-meeting-time-sel.c
+++ b/calendar/gui/e-meeting-time-sel.c
@@ -1447,7 +1447,8 @@ e_meeting_time_selector_refresh_cb (gpointer data)
cursor = gdk_cursor_new (GDK_LEFT_PTR);
window = gtk_widget_get_window (GTK_WIDGET (mts));
- gdk_window_set_cursor (window, cursor);
+ if (window)
+ gdk_window_set_cursor (window, cursor);
gdk_cursor_unref (cursor);
mts->last_cursor_set = GDK_LEFT_PTR;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]