aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/main.c
diff options
context:
space:
mode:
authorFederico Mena Quintero <federico@nuclecu.unam.mx>1998-08-14 08:33:01 +0800
committerArturo Espinosa <unammx@src.gnome.org>1998-08-14 08:33:01 +0800
commit43fd11d9b80259b3b6ec64de4fdff0767b5611c5 (patch)
treec0061e68fad9091974b4214d15fd124adbbeb3f2 /calendar/main.c
parenta6266876c6c829d7862b522651ecca1dda6a1c65 (diff)
downloadgsoc2013-evolution-43fd11d9b80259b3b6ec64de4fdff0767b5611c5.tar
gsoc2013-evolution-43fd11d9b80259b3b6ec64de4fdff0767b5611c5.tar.gz
gsoc2013-evolution-43fd11d9b80259b3b6ec64de4fdff0767b5611c5.tar.bz2
gsoc2013-evolution-43fd11d9b80259b3b6ec64de4fdff0767b5611c5.tar.lz
gsoc2013-evolution-43fd11d9b80259b3b6ec64de4fdff0767b5611c5.tar.xz
gsoc2013-evolution-43fd11d9b80259b3b6ec64de4fdff0767b5611c5.tar.zst
gsoc2013-evolution-43fd11d9b80259b3b6ec64de4fdff0767b5611c5.zip
Doh. Actually recalculate the days using the month and year.
1998-08-13 Federico Mena Quintero <federico@nuclecu.unam.mx> * gnome-month-item.c (gnome_month_item_set_arg): Doh. Actually recalculate the days using the month and year. * main.c: Added "Go to" button to quickly jump to a specific date. * goto.c: New file that defines the quick go-to date dialog. * Makefile.am (gnomecal_SOURCES): Added goto.c to the sources. svn path=/trunk/; revision=317
Diffstat (limited to 'calendar/main.c')
-rw-r--r--calendar/main.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/calendar/main.c b/calendar/main.c
index 6d2a334163..ebb008927f 100644
--- a/calendar/main.c
+++ b/calendar/main.c
@@ -134,7 +134,10 @@ about_calendar_cmd (GtkWidget *widget, void *data)
authors,
_("The GNOME personal calendar and schedule manager."),
NULL);
+ gnome_dialog_run_and_destroy (GNOME_DIALOG (about));
+#if 0
gtk_widget_show (about);
+#endif
}
static void
@@ -224,6 +227,12 @@ today_clicked (GtkWidget *widget, GnomeCalendar *gcal)
}
static void
+goto_clicked (GtkWidget *widget, GnomeCalendar *gcal)
+{
+ goto_dialog (gcal);
+}
+
+static void
new_calendar_cmd (GtkWidget *widget, void *data)
{
new_calendar (full_name, NULL, NULL, NULL);
@@ -375,6 +384,10 @@ static GnomeUIInfo gnome_toolbar [] = {
{ GNOME_APP_UI_ITEM, N_("Next"), N_("Go forward in time"), next_clicked, 0, 0,
GNOME_APP_PIXMAP_STOCK, GNOME_STOCK_MENU_FORWARD },
+ GNOMEUIINFO_SEPARATOR,
+
+ GNOMEUIINFO_ITEM_STOCK (N_("Go to"), N_("Go to a specific date"), goto_clicked, GNOME_STOCK_PIXMAP_STOP),
+
GNOMEUIINFO_END
};