aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/e-meeting-time-sel.c
diff options
context:
space:
mode:
authorChenthill Palanisamy <pchen@src.gnome.org>2006-03-29 17:10:27 +0800
committerChenthill Palanisamy <pchen@src.gnome.org>2006-03-29 17:10:27 +0800
commitd30e7f782ee451e13beac4858ba44b3bd390a768 (patch)
tree969bcfbc3ba6bf7093772e0c2040350399962923 /calendar/gui/e-meeting-time-sel.c
parent675d1e50a6ffa9442de7ecc6257315a4465dff41 (diff)
downloadgsoc2013-evolution-d30e7f782ee451e13beac4858ba44b3bd390a768.tar.gz
gsoc2013-evolution-d30e7f782ee451e13beac4858ba44b3bd390a768.tar.zst
gsoc2013-evolution-d30e7f782ee451e13beac4858ba44b3bd390a768.zip
Fixes #160357
svn path=/trunk/; revision=31755
Diffstat (limited to 'calendar/gui/e-meeting-time-sel.c')
-rw-r--r--calendar/gui/e-meeting-time-sel.c17
1 files changed, 15 insertions, 2 deletions
diff --git a/calendar/gui/e-meeting-time-sel.c b/calendar/gui/e-meeting-time-sel.c
index f25ceb4d80..b0cee97f9a 100644
--- a/calendar/gui/e-meeting-time-sel.c
+++ b/calendar/gui/e-meeting-time-sel.c
@@ -59,6 +59,7 @@
#include <misc/e-dateedit.h>
#include <e-util/e-gui-utils.h>
+#include <e-util/e-cursor.h>
#include "calendar-component.h"
#include "calendar-config.h"
@@ -390,13 +391,13 @@ e_meeting_time_selector_construct (EMeetingTimeSelector * mts, EMeetingStore *em
gtk_widget_show (mts->vscrollbar);
/* Create the item in the top canvas. */
- gnome_canvas_item_new (GNOME_CANVAS_GROUP (GNOME_CANVAS (mts->display_top)->root),
+ mts->item_top = gnome_canvas_item_new (GNOME_CANVAS_GROUP (GNOME_CANVAS (mts->display_top)->root),
e_meeting_time_selector_item_get_type (),
"EMeetingTimeSelectorItem::meeting_time_selector", mts,
NULL);
/* Create the item in the main canvas. */
- gnome_canvas_item_new (GNOME_CANVAS_GROUP (GNOME_CANVAS (mts->display_main)->root),
+ mts->item_main = gnome_canvas_item_new (GNOME_CANVAS_GROUP (GNOME_CANVAS (mts->display_main)->root),
e_meeting_time_selector_item_get_type (),
"EMeetingTimeSelectorItem::meeting_time_selector", mts,
NULL);
@@ -1202,6 +1203,13 @@ e_meeting_time_selector_refresh_cb (gpointer data)
{
EMeetingTimeSelector *mts = data;
+ if (e_meeting_store_get_num_queries (mts->model) == 0) {
+ e_cursor_set ((GtkWidget *)mts, E_CURSOR_NORMAL);
+ mts->last_cursor_set = GDK_LEFT_PTR;
+ e_meeting_time_selector_item_set_normal_cursor (E_MEETING_TIME_SELECTOR_ITEM (mts->item_top));
+ e_meeting_time_selector_item_set_normal_cursor (E_MEETING_TIME_SELECTOR_ITEM (mts->item_main));
+ }
+
if (mts->display_top != NULL)
gtk_widget_queue_draw (mts->display_top);
if (mts->display_main != NULL)
@@ -1224,6 +1232,11 @@ e_meeting_time_selector_refresh_free_busy (EMeetingTimeSelector *mts, int row, g
end.hour = 0;
end.minute = 0;
+ /* set the cursor to Busy, We need to reset it to normal once the free busy
+ queries are complete */
+ e_cursor_set ((GtkWidget *)mts, E_CURSOR_BUSY);
+ mts->last_cursor_set = GDK_WATCH;
+
/* Ref ourselves in case we are called back after destruction,
* we can do this because we will get a call back even after
* an error */