aboutsummaryrefslogtreecommitdiffstats
path: root/executive-summary/widgets/esummary-window-test.c
diff options
context:
space:
mode:
authorIain Holmes <iain@src.gnome.org>2000-10-05 08:30:58 +0800
committerIain Holmes <iain@src.gnome.org>2000-10-05 08:30:58 +0800
commit209014ecb6e123a3eb8d402dfb09322506bc8024 (patch)
tree5ef48637c12e3d09fcd3423bd3a12e1a4cb5dcfd /executive-summary/widgets/esummary-window-test.c
parenteac1b77c2ff04f5630409500f7582a010a1b3fd7 (diff)
downloadgsoc2013-evolution-209014ecb6e123a3eb8d402dfb09322506bc8024.tar
gsoc2013-evolution-209014ecb6e123a3eb8d402dfb09322506bc8024.tar.gz
gsoc2013-evolution-209014ecb6e123a3eb8d402dfb09322506bc8024.tar.bz2
gsoc2013-evolution-209014ecb6e123a3eb8d402dfb09322506bc8024.tar.lz
gsoc2013-evolution-209014ecb6e123a3eb8d402dfb09322506bc8024.tar.xz
gsoc2013-evolution-209014ecb6e123a3eb8d402dfb09322506bc8024.tar.zst
gsoc2013-evolution-209014ecb6e123a3eb8d402dfb09322506bc8024.zip
Doh! forgot the widgets
svn path=/trunk/; revision=5732
Diffstat (limited to 'executive-summary/widgets/esummary-window-test.c')
-rw-r--r--executive-summary/widgets/esummary-window-test.c43
1 files changed, 43 insertions, 0 deletions
diff --git a/executive-summary/widgets/esummary-window-test.c b/executive-summary/widgets/esummary-window-test.c
new file mode 100644
index 0000000000..3a0ad0ab6b
--- /dev/null
+++ b/executive-summary/widgets/esummary-window-test.c
@@ -0,0 +1,43 @@
+#include <gnome.h>
+#include <gal/widgets/e-canvas.h>
+#include "e-summary-subwindow.h"
+#include "e-summary-titlebar.h"
+
+void
+close_test (GtkWidget *widget,
+ gpointer data)
+{
+ gtk_main_quit ();
+}
+
+int
+main (int argc,
+ char **argv)
+{
+ GtkWidget *window, *canvas;
+ ESummarySubwindow *subwindow;
+ GtkWidget *control;
+
+ gnome_init ("Executive Summary Subwindow Test", "1.0", argc, argv);
+ window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
+ gtk_signal_connect (GTK_OBJECT (window), "destroy",
+ GTK_SIGNAL_FUNC (close_test), NULL);
+
+ canvas = e_canvas_new ();
+
+ subwindow = e_summary_subwindow_new (GNOME_CANVAS_GROUP (GNOME_CANVAS (canvas)->root), 100, 100);
+
+ control = gtk_button_new_with_label ("A big button");
+ gtk_widget_set_usize (control, 400, 200);
+
+ e_summary_subwindow_add (subwindow, control);
+ gtk_widget_show (control);
+
+ gnome_canvas_set_scroll_region (GNOME_CANVAS (canvas), 0.0, 0.0, 1000.0, 1300.0);
+ gtk_container_add (GTK_CONTAINER (window), canvas);
+ gtk_widget_show_all (window);
+
+ gtk_main ();
+
+ exit(0);
+}