From 6cb08f0bc177cd0de35b852fac94a181f4d2233c Mon Sep 17 00:00:00 2001 From: Bertrand Guiheneuf Date: Tue, 10 Aug 1999 11:53:46 +0000 Subject: some test files svn path=/trunk/; revision=1101 --- tests/ui-tests/Makefile.am | 16 ++ tests/ui-tests/store_listing.c | 54 +++++++ tests/ui-tests/store_listing.glade | 289 +++++++++++++++++++++++++++++++++++++ 3 files changed, 359 insertions(+) create mode 100644 tests/ui-tests/Makefile.am create mode 100644 tests/ui-tests/store_listing.c create mode 100644 tests/ui-tests/store_listing.glade (limited to 'tests/ui-tests') diff --git a/tests/ui-tests/Makefile.am b/tests/ui-tests/Makefile.am new file mode 100644 index 0000000000..19bbb6c8d4 --- /dev/null +++ b/tests/ui-tests/Makefile.am @@ -0,0 +1,16 @@ +# process this file with automake to create Makefile.in + +INCLUDES = -I$(top_srcdir)/intl -I$(top_srcdir)/camel \ + -I$(includedir) -I$(top_srcdir)/camel/providers/MH \ + $(EXTRA_GNOME_CFLAGS) + +LDADD = \ + $(top_builddir)/camel/libcamel.la \ + $(INTLLIBS) $(EXTRA_GNOME_LIBS) + + + + + +noinst_PROGRAMS = \ + store_listing \ No newline at end of file diff --git a/tests/ui-tests/store_listing.c b/tests/ui-tests/store_listing.c new file mode 100644 index 0000000000..1eee741286 --- /dev/null +++ b/tests/ui-tests/store_listing.c @@ -0,0 +1,54 @@ +/* Bertrand.Guiheneuf@aful.org */ + + + +/* + gcc -o store_listing `gnome-config --cflags gnomeui libglade` \ + store_listing.c `gnome-config --libs gnomeui libglade` +*/ +/******************************************************************************/ + + +#include +#include + + +static GladeXML *xml; + + +void +on_exit1_activate (GtkWidget *widget, void *data) +{ + gtk_main_quit (); +} + + +void +on_about1_activate (GtkWidget *widget, void *data) +{ + GtkWidget *about_widget; + + about_widget = glade_xml_get_widget (xml, "about_widget"); + gtk_widget_show (about_widget); +} + + + + +int +main(int argc, char *argv[]) +{ + + gnome_init ("store_listing", "1.0", argc, argv); + + glade_gnome_init(); + + xml = glade_xml_new ("store_listing.glade", NULL); + if (xml) glade_xml_signal_autoconnect (xml); + + + gtk_main (); + + return 0; +} + diff --git a/tests/ui-tests/store_listing.glade b/tests/ui-tests/store_listing.glade new file mode 100644 index 0000000000..32516494aa --- /dev/null +++ b/tests/ui-tests/store_listing.glade @@ -0,0 +1,289 @@ + + + + + store_listing + store_listing + + src + pixmaps + C + True + True + False + True + True + True + True + interface.c + interface.h + callbacks.c + callbacks.h + support.c + support.h + + + + + GnomeApp + app1 + 600 + 400 + store_listing + GTK_WINDOW_TOPLEVEL + GTK_WIN_POS_NONE + False + False + True + False + True + + + GnomeDock + GnomeApp:dock + dock1 + True + + 0 + True + True + + + + GnomeDockItem + dockitem1 + 2 + GNOME_DOCK_TOP + 0 + 0 + 0 + False + True + False + True + False + GTK_SHADOW_OUT + + + GtkMenuBar + menubar1 + GTK_SHADOW_NONE + + + GtkMenuItem + file1 + GNOMEUIINFO_MENU_FILE_TREE + + + GtkMenu + file1_menu + + + GtkPixmapMenuItem + new_store + + activate + on_new_store_activate + Tue, 10 Aug 1999 10:29:12 GMT + + GNOMEUIINFO_MENU_NEW_ITEM + + + + + GtkMenuItem + separator1 + False + + + + GtkPixmapMenuItem + exit1 + + activate + on_exit1_activate + Tue, 10 Aug 1999 10:25:52 GMT + + GNOMEUIINFO_MENU_EXIT_ITEM + + + + + + GtkMenuItem + help1 + GNOMEUIINFO_MENU_HELP_TREE + + + GtkMenu + help1_menu + + + GtkPixmapMenuItem + about1 + + activate + on_about1_activate + Tue, 10 Aug 1999 10:25:52 GMT + + GNOMEUIINFO_MENU_ABOUT_ITEM + + + + + + + + GnomeDockItem + dockitem2 + 1 + GNOME_DOCK_TOP + 1 + 0 + 0 + False + True + False + False + False + GTK_SHADOW_OUT + + + GtkToolbar + toolbar1 + 1 + GTK_ORIENTATION_HORIZONTAL + GTK_TOOLBAR_BOTH + 16 + GTK_TOOLBAR_SPACE_LINE + GTK_RELIEF_NONE + True + + + GtkButton + Toolbar:button + new_store_button + + GNOME_STOCK_PIXMAP_NEW + + + + + + GtkHPaned + GnomeDock:contents + hpaned1 + 10 + 6 + 0 + + + GtkCTree + ctree1 + True + 1 + 80 + GTK_SELECTION_SINGLE + True + GTK_SHADOW_IN + + True + False + + + + GtkLabel + CTree:title + store_and_inbox_name + + GTK_JUSTIFY_CENTER + False + 0.5 + 0.5 + 0 + 0 + + + + + GtkCList + clist1 + True + 3 + 80,80,80 + GTK_SELECTION_SINGLE + True + GTK_SHADOW_IN + + True + True + + + + GtkLabel + CList:title + message_date_label + + GTK_JUSTIFY_CENTER + False + 0.5 + 0.5 + 0 + 0 + + + + GtkLabel + CList:title + message_sender_label + + GTK_JUSTIFY_CENTER + False + 0.5 + 0.5 + 0 + 0 + + + + GtkLabel + CList:title + message_subject_label + + GTK_JUSTIFY_CENTER + False + 0.5 + 0.5 + 0 + 0 + + + + + + + GnomeAppBar + GnomeApp:appbar + appbar1 + True + True + + 0 + True + True + + + + + + GnomeAbout + about_widget + False + True + + Bertrand Guiheneuf <Bertrand.Guiheneuf@aful.org> + + This is a very simple program to test Camel + + + -- cgit