aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gncal.c
diff options
context:
space:
mode:
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;