aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2009-11-10 09:40:07 +0800
committerMatthew Barnes <mbarnes@redhat.com>2009-11-10 10:19:20 +0800
commit5beeca1f80c3a618feeeb2c5b7e09cc47b64387d (patch)
tree10a64d9c5ee58b63f908a173451135c6447ddd90 /calendar/gui
parentbd5d405fe311361f27c78cd48682d2e067273d27 (diff)
downloadgsoc2013-evolution-5beeca1f80c3a618feeeb2c5b7e09cc47b64387d.tar
gsoc2013-evolution-5beeca1f80c3a618feeeb2c5b7e09cc47b64387d.tar.gz
gsoc2013-evolution-5beeca1f80c3a618feeeb2c5b7e09cc47b64387d.tar.bz2
gsoc2013-evolution-5beeca1f80c3a618feeeb2c5b7e09cc47b64387d.tar.lz
gsoc2013-evolution-5beeca1f80c3a618feeeb2c5b7e09cc47b64387d.tar.xz
gsoc2013-evolution-5beeca1f80c3a618feeeb2c5b7e09cc47b64387d.tar.zst
gsoc2013-evolution-5beeca1f80c3a618feeeb2c5b7e09cc47b64387d.zip
Kill e-cursor(s) (both of them).
Diffstat (limited to 'calendar/gui')
-rw-r--r--calendar/gui/e-meeting-time-sel.c19
1 files changed, 16 insertions, 3 deletions
diff --git a/calendar/gui/e-meeting-time-sel.c b/calendar/gui/e-meeting-time-sel.c
index 633af15e6d..4bd1ed1bdb 100644
--- a/calendar/gui/e-meeting-time-sel.c
+++ b/calendar/gui/e-meeting-time-sel.c
@@ -40,7 +40,6 @@
#include "misc/e-dateedit.h"
#include "e-util/e-binding.h"
-#include "e-util/e-cursor.h"
#include "e-util/e-util.h"
#include "e-meeting-utils.h"
@@ -1386,8 +1385,16 @@ 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);
+ GdkCursor *cursor;
+ GdkWindow *window;
+
+ cursor = gdk_cursor_new (GDK_LEFT_PTR);
+ window = gtk_widget_get_window (GTK_WIDGET (mts));
+ gdk_window_set_cursor (window, cursor);
+ gdk_cursor_unref (cursor);
+
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));
}
@@ -1406,6 +1413,8 @@ void
e_meeting_time_selector_refresh_free_busy (EMeetingTimeSelector *mts, gint row, gboolean all)
{
EMeetingTime start, end;
+ GdkCursor *cursor;
+ GdkWindow *window;
start = mts->meeting_start_time;
g_date_subtract_days (&start.date, E_MEETING_TIME_SELECTOR_FB_DAYS_BEFORE);
@@ -1418,7 +1427,11 @@ e_meeting_time_selector_refresh_free_busy (EMeetingTimeSelector *mts, gint row,
/* 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);
+ cursor = gdk_cursor_new (GDK_WATCH);
+ window = gtk_widget_get_window (GTK_WIDGET (mts));
+ gdk_window_set_cursor (window, cursor);
+ gdk_cursor_unref (cursor);
+
mts->last_cursor_set = GDK_WATCH;
/* Ref ourselves in case we are called back after destruction,