aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gncal.c
diff options
context:
space:
mode:
authorFederico Mena Quintero <federico@nuclecu.unam.mx>1998-04-03 14:03:18 +0800
committerArturo Espinosa <unammx@src.gnome.org>1998-04-03 14:03:18 +0800
commit197ca7ac5bd990427d8c5e7683b6408ffc23f261 (patch)
tree5cef7014f10dbdd45e2a8be3b1a7a205b80b664c /calendar/gncal.c
parentdc90ad6b4302059c79a95d535c8363829faed7df (diff)
downloadgsoc2013-evolution-197ca7ac5bd990427d8c5e7683b6408ffc23f261.tar
gsoc2013-evolution-197ca7ac5bd990427d8c5e7683b6408ffc23f261.tar.gz
gsoc2013-evolution-197ca7ac5bd990427d8c5e7683b6408ffc23f261.tar.bz2
gsoc2013-evolution-197ca7ac5bd990427d8c5e7683b6408ffc23f261.tar.lz
gsoc2013-evolution-197ca7ac5bd990427d8c5e7683b6408ffc23f261.tar.xz
gsoc2013-evolution-197ca7ac5bd990427d8c5e7683b6408ffc23f261.tar.zst
gsoc2013-evolution-197ca7ac5bd990427d8c5e7683b6408ffc23f261.zip
New full-day widget. It is still a work in progress. It will be similar to
1998-04-02 Federico Mena Quintero <federico@nuclecu.unam.mx> * gncal-full-day.c: New full-day widget. It is still a work in progress. It will be similar to M$ Schedule's nifty full day view widget, but with Gtk's elegance :-) * Makefile.am (gnomecal_SOURCES): Added gncal-full-day.[ch] to the sources. svn path=/trunk/; revision=99
Diffstat (limited to 'calendar/gncal.c')
-rw-r--r--calendar/gncal.c21
1 files changed, 20 insertions, 1 deletions
diff --git a/calendar/gncal.c b/calendar/gncal.c
index 5aa911aed9..8d595a49dc 100644
--- a/calendar/gncal.c
+++ b/calendar/gncal.c
@@ -17,7 +17,24 @@
#include "gncal.h"
#include "calcs.h"
#include "clist.h"
-#include "gtkcalendar.h"
+#include "gncal-week-view.h"
+
+void
+prueba (void)
+{
+ GtkWidget *window;
+ GtkWidget *wview;
+
+ window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
+ gtk_window_set_policy (GTK_WINDOW (window), TRUE, TRUE, FALSE);
+ gtk_container_border_width (GTK_CONTAINER (window), 6);
+
+ wview = gncal_week_view_new (NULL, time (NULL));
+ gtk_container_add (GTK_CONTAINER (window), wview);
+ gtk_widget_show (wview);
+
+ gtk_widget_show (window);
+}
/* Function declarations */
void parse_args(int argc, char *argv[]);
@@ -535,6 +552,8 @@ main(int argc, char *argv[])
get_system_date(&curr_day, &curr_month, &curr_year);
update_today();
+ prueba ();
+
gtk_main();
return 0;