aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/main.c
diff options
context:
space:
mode:
authorFederico Mena Quintero <federico@nuclecu.unam.mx>1998-09-04 08:43:06 +0800
committerArturo Espinosa <unammx@src.gnome.org>1998-09-04 08:43:06 +0800
commit84fa00e42a593a4e4e64866090df30c9d7c066b9 (patch)
tree2c5c5f1566aad424cdc537f55cf08d8c7e3bea1d /calendar/main.c
parentde704a7b4576df4f84ed859c7d3337cce0f89e57 (diff)
downloadgsoc2013-evolution-84fa00e42a593a4e4e64866090df30c9d7c066b9.tar
gsoc2013-evolution-84fa00e42a593a4e4e64866090df30c9d7c066b9.tar.gz
gsoc2013-evolution-84fa00e42a593a4e4e64866090df30c9d7c066b9.tar.bz2
gsoc2013-evolution-84fa00e42a593a4e4e64866090df30c9d7c066b9.tar.lz
gsoc2013-evolution-84fa00e42a593a4e4e64866090df30c9d7c066b9.tar.xz
gsoc2013-evolution-84fa00e42a593a4e4e64866090df30c9d7c066b9.tar.zst
gsoc2013-evolution-84fa00e42a593a4e4e64866090df30c9d7c066b9.zip
Finished with the properties dialog. You can jump to days from the year
Finished with the properties dialog. You can jump to days from the year view now. I'm off to rewrite gnome-popupmenu and friends. 1998-09-03 Federico Mena Quintero <federico@nuclecu.unam.mx> * gncal-full-day.c (gncal_full_day_forall): Updated foreach -> forall from Gtk changes, bleah. * year-view.c (day_event): New function to handle events from days. Jumps to the day that is clicked. * main.c: Use a watch cursor while the previous/today/next functions are doing their job. * mark.c (month_item_prepare_prelight): New public utility function to prepare a month item for prelighting. It will store the proper prelight information and attach the appropriate signals. (mark_current_day): Make the current day bold as well (useful for color-blind people, I guess). * prop.c (set_current_day): Reset the date in the sample calendar and mark the current day. (fake_mark_days): Mark fake events in the sample calendar. * year-view.c (year_view_set): Use the general prelighting engine. * goto.c (day_event): Just process button presses, as prelighting is done behind the scenes now. (update): Use the general prelighting engine. * prop.c (create_colors_page): We can now configure the colors of svn path=/trunk/; revision=361
Diffstat (limited to 'calendar/main.c')
-rw-r--r--calendar/main.c26
1 files changed, 26 insertions, 0 deletions
diff --git a/calendar/main.c b/calendar/main.c
index 5ccdeee3ff..462e71a06a 100644
--- a/calendar/main.c
+++ b/calendar/main.c
@@ -251,22 +251,48 @@ quit_cmd (void)
}
}
+/* Sets a clock cursor for the specified calendar window */
+static void
+set_clock_cursor (GnomeCalendar *gcal)
+{
+ GdkCursor *cursor;
+
+ cursor = gdk_cursor_new (GDK_WATCH);
+ gdk_window_set_cursor (GTK_WIDGET (gcal)->window, cursor);
+ gdk_cursor_destroy (cursor);
+ gdk_flush ();
+}
+
+/* Resets the normal cursor for the specified calendar window */
+static void
+set_normal_cursor (GnomeCalendar *gcal)
+{
+ gdk_window_set_cursor (GTK_WIDGET (gcal)->window, NULL);
+ gdk_flush ();
+}
+
static void
previous_clicked (GtkWidget *widget, GnomeCalendar *gcal)
{
+ set_clock_cursor (gcal);
gnome_calendar_previous (gcal);
+ set_normal_cursor (gcal);
}
static void
next_clicked (GtkWidget *widget, GnomeCalendar *gcal)
{
+ set_clock_cursor (gcal);
gnome_calendar_next (gcal);
+ set_normal_cursor (gcal);
}
static void
today_clicked (GtkWidget *widget, GnomeCalendar *gcal)
{
+ set_clock_cursor (gcal);
gnome_calendar_goto_today (gcal);
+ set_normal_cursor (gcal);
}
static void