From 143c156ed8a46947ba6ddb912f2e7f2965f1908c Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Fri, 14 Sep 2012 10:10:15 -0500 Subject: Initial import of renamed Unico engine, ready for hacking! --- tests/Makefile.am | 17 + tests/test-widgets.c | 45 ++ tests/test-widgets.glade | 1717 ++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 1779 insertions(+) create mode 100644 tests/Makefile.am create mode 100644 tests/test-widgets.c create mode 100644 tests/test-widgets.glade (limited to 'tests') diff --git a/tests/Makefile.am b/tests/Makefile.am new file mode 100644 index 0000000..9bae1df --- /dev/null +++ b/tests/Makefile.am @@ -0,0 +1,17 @@ +EXTRA_DIST = \ + test-widgets.glade + +noinst_PROGRAMS = \ + test-widgets + +test_widgets_CFLAGS = \ + -I$(top_srcdir) \ + $(TDEGTK_CFLAGS) + +test_widgets_LDADD = \ + $(TDEGTK_LIBADD) + +test_widgets_LDFLAGS = \ + $(TDEGTK_LDFLAGS) + +# FIXME(Cimi): Figure out what tests must be compiled and add them here. diff --git a/tests/test-widgets.c b/tests/test-widgets.c new file mode 100644 index 0000000..0e40fb6 --- /dev/null +++ b/tests/test-widgets.c @@ -0,0 +1,45 @@ +/* The TdeGtk Theming Engine for Gtk+. + * Copyright (C) 2011 Canonical Ltd + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free + * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, + * MA 02110-1301, USA. + * + * Authored by Andrea Cimitan + * + */ + +#include + +int +main (int argc, char *argv[]) +{ + GtkBuilder *builder; + GtkWidget *window; + + gtk_init (&argc, &argv); + + builder = gtk_builder_new (); + gtk_builder_add_from_file (builder, "./test-widgets.glade", NULL); + + window = GTK_WIDGET (gtk_builder_get_object (builder, "window")); + gtk_builder_connect_signals (builder, NULL); + + g_object_unref (G_OBJECT (builder)); + + gtk_widget_show (window); + gtk_main (); + + return 0; +} diff --git a/tests/test-widgets.glade b/tests/test-widgets.glade new file mode 100644 index 0000000..a7cac2c --- /dev/null +++ b/tests/test-widgets.glade @@ -0,0 +1,1717 @@ + + + + + 100 + 50 + 1 + 10 + + + + + + + + + + + + + True + Andrea + Cimi + + + False + Otto + chaotic + + + + + Lorem ipsum dolor sit amet, consectetur adipiscing elit. +Nullam fringilla, est ut feugiat ultrices, elit lacus ultricies nibh, id commodo tortor nisi id elit. +Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. +Morbi vel elit erat. Maecenas dignissim, dui et pharetra rutrum, tellus lectus rutrum mi, a convallis libero nisi quis tellus. +Nulla facilisi. Nullam eleifend lobortis nisl, in porttitor tellus malesuada vitae. +Aenean lacus tellus, pellentesque quis molestie quis, fringilla in arcu. +Duis elementum, tellus sed tristique semper, metus metus accumsan augue, et porttitor augue orci a libero. +Ut sed justo ac felis placerat laoreet sed id sem. Proin mattis tincidunt odio vitae tristique. +Morbi massa libero, congue vitae scelerisque vel, ultricies vel nisl. +Vestibulum in tortor diam, quis aliquet quam. Praesent ut justo neque, tempus rutrum est. +Duis eu lectus quam. Vivamus eget metus a mauris molestie venenatis pulvinar eleifend nisi. +Nulla facilisi. Pellentesque at dolor sit amet purus dapibus pulvinar molestie quis neque. +Suspendisse feugiat quam quis dolor accumsan cursus. + + + False + + + True + False + vertical + + + True + False + + + True + False + False + _File + True + + + True + False + + + gtk-new + True + False + False + True + True + + + + + gtk-open + True + False + False + True + True + + + + + gtk-save + True + False + False + True + True + + + + + gtk-save-as + True + False + False + True + True + + + + + True + False + False + + + + + gtk-quit + True + False + False + True + True + + + + + + + + + True + False + False + _Edit + True + + + True + False + + + gtk-cut + True + False + False + True + True + + + + + gtk-copy + True + False + False + True + True + + + + + gtk-paste + True + False + False + True + True + + + + + gtk-delete + True + False + False + True + True + + + + + + + + + True + False + False + _View + True + + + + + True + False + False + _Help + True + + + True + False + + + gtk-about + True + False + False + True + True + + + + + + + + + False + True + 0 + + + + + True + False + + + True + False + False + Save + True + gtk-save + + + False + True + + + + + True + False + False + Open + True + gtk-open + + + False + True + + + + + True + False + False + + + False + True + + + + + True + False + False + Find + True + gtk-find + + + False + True + + + + + True + False + False + + + + + + True + True + + + + + True + False + False + + + True + True + + search... + + + + + False + + + + + False + True + 1 + + + + + True + False + 6 + + + True + False + vertical + 4 + + + True + False + True + + + False + comboboxentry + + + + + False + False + 0 + + + + + True + False + False + True + + + False + + comboboxentry + + + + + False + False + 1 + + + + + True + True + + entry + + + False + False + 2 + + + + + True + False + True + + entry + + + False + False + 3 + + + + + True + False + 20 + + + True + False + label + + + False + True + 0 + + + + + True + False + False + label + + + False + True + 1 + + + + + True + True + + + + False + False + 2 + + + + + True + True + + + + False + False + 3 + + + + + False + False + 4 + + + + + True + False + True + 4 + 2 + + + checkbutton + True + True + False + False + 0 + True + True + + + 0 + 0 + 1 + 1 + + + + + checkbutton + True + True + False + False + 0 + True + + + 0 + 1 + 1 + 1 + + + + + checkbutton + True + False + True + False + False + 0 + True + True + + + 0 + 2 + 1 + 1 + + + + + checkbutton + True + False + True + False + False + 0 + True + + + 0 + 3 + 1 + 1 + + + + + radiobutton + True + True + False + False + 0 + True + True + + + 1 + 0 + 1 + 1 + + + + + radiobutton + True + True + False + False + 0 + True + True + radiobutton1 + + + 1 + 1 + 1 + 1 + + + + + radiobutton + True + False + True + False + False + 0 + True + True + + + 1 + 2 + 1 + 1 + + + + + radiobutton + True + False + True + False + False + 0 + True + True + radiobutton3 + + + 1 + 3 + 1 + 1 + + + + + False + False + 5 + + + + + False + False + 4 + 0 + + + + + True + False + vertical + + + False + True + 1 + + + + + 110 + True + False + vertical + 4 + + + togglebutton + True + True + True + False + + + False + False + 0 + + + + + togglebutton + True + False + True + True + False + + + False + False + 1 + + + + + togglebutton + True + True + True + False + True + + + False + False + 2 + + + + + togglebutton + True + False + True + True + False + True + + + False + False + 3 + + + + + True + False + liststore1 + 0 + + + + 2 + + + + + False + True + 5 + + + + + True + False + False + liststore1 + 1 + + + + 2 + + + + + False + False + 6 + + + + + True + True + True + False + + + False + False + 6 + + + + + True + True + True + False + #31316867a09f + + + False + True + 8 + + + + + True + False + + + False + True + 8 + + + + + False + False + 2 + + + + + True + False + vertical + + + False + True + 3 + + + + + True + False + vertical + 4 + + + True + False + vertical + 8 + True + + + True + False + 0.5 + + + False + False + 0 + + + + + True + False + 0.5 + True + + + False + False + 1 + + + + + False + False + 0 + + + + + True + False + + + True + False + True + vertical + True + + + True + True + adjustment1 + False + 75 + False + + + False + True + 0 + + + + + True + False + True + adjustment1 + False + 75 + False + + + False + True + 1 + + + + + True + True + 0 + + + + + False + False + 1 + + + + + True + False + True + + + True + False + True + 4 + + + True + False + vertical + 0.5 + + + False + True + 0 + + + + + True + False + vertical + 0.5 + True + + + False + True + 1 + + + + + False + False + 0 + + + + + True + False + True + 4 + + + 100 + True + True + vertical + adjustment1 + False + 75 + False + + + False + True + 0 + + + + + 100 + True + False + True + vertical + adjustment1 + False + 75 + False + + + False + True + 1 + + + + + False + False + 1 + + + + + True + True + 2 + + + + + True + False + vertical + + + True + False + + + link button + True + True + True + True + False + none + http://www.ubuntu.com + + + + + False + True + 0 + + + + + True + True + + + True + True + in + + + True + False + + + True + False + Lorem ipsum dolor sit amet, consectetur adipiscing elit. +Nullam fringilla, est ut feugiat ultrices, elit lacus ultricies nibh, id commodo tortor nisi id elit. +Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. +Morbi vel elit erat. Maecenas dignissim, dui et pharetra rutrum, tellus lectus rutrum mi, a convallis libero nisi quis tellus. +Nulla facilisi. Nullam eleifend lobortis nisl, in porttitor tellus malesuada vitae. +Aenean lacus tellus, pellentesque quis molestie quis, fringilla in arcu. +Duis elementum, tellus sed tristique semper, metus metus accumsan augue, et porttitor augue orci a libero. +Ut sed justo ac felis placerat laoreet sed id sem. Proin mattis tincidunt odio vitae tristique. +Morbi massa libero, congue vitae scelerisque vel, ultricies vel nisl. +Vestibulum in tortor diam, quis aliquet quam. Praesent ut justo neque, tempus rutrum est. +Duis eu lectus quam. Vivamus eget metus a mauris molestie venenatis pulvinar eleifend nisi. +Nulla facilisi. Pellentesque at dolor sit amet purus dapibus pulvinar molestie quis neque. +Suspendisse feugiat quam quis dolor accumsan cursus. + + + + + + + + + True + False + expander + + + + + False + True + 1 + + + + + False + True + 3 + + + + + False + False + 4 + + + + + True + False + vertical + + + False + True + 5 + + + + + True + False + vertical + True + + + True + False + 0 + in + + + True + False + 12 + + + + + + + + True + False + <b>In</b> + True + + + + + True + True + 0 + + + + + True + False + 0 + out + + + True + False + 12 + + + + + + + + True + False + <b>Out</b> + True + + + + + True + True + 1 + + + + + True + False + 0 + + + True + False + 12 + + + + + + + + True + False + <b>Etched out</b> + True + + + + + True + True + 2 + + + + + True + False + 0 + etched-out + + + True + False + 12 + + + + + + + + True + False + <b>Etched out</b> + True + + + + + True + True + 3 + + + + + True + True + 6 + + + + + True + False + vertical + + + False + True + 7 + + + + + True + False + vertical + 4 + + + 150 + True + True + always + in + + + True + True + liststore1 + False + 0 + + + + + + Cool + + + + 0 + + + + + + + Name + + + + 1 + + + + + + + Nick + + + + 2 + + + + + + + + + True + True + 0 + + + + + True + True + in + + + True + True + textbuffer1 + + + + + True + True + 1 + + + + + True + True + 6 + 8 + + + + + False + True + 10 + 2 + + + + + True + False + + + False + True + 3 + + + + + True + False + 5 + 5 + 5 + 10 + True + + + True + True + + + True + False + vertical + + + + + + + + True + False + page 1 + + + False + + + + + True + False + vertical + + + + + + 1 + + + + + True + False + page 2 + + + 1 + False + + + + + True + False + vertical + + + + + + 2 + + + + + True + False + page 3 + + + 2 + False + + + + + False + True + 0 + + + + + True + True + right + + + True + False + vertical + + + + + + + + True + False + page 1 + + + False + + + + + True + False + vertical + + + + + + 1 + + + + + True + False + page 2 + + + 1 + False + + + + + True + False + vertical + + + + + + 2 + + + + + True + False + page 3 + + + 2 + False + + + + + False + True + 1 + + + + + True + True + bottom + + + True + False + vertical + + + + + + + + True + False + page 1 + + + False + + + + + True + False + vertical + + + + + + 1 + + + + + True + False + page 2 + + + 1 + False + + + + + True + False + vertical + + + + + + 2 + + + + + True + False + page 3 + + + 2 + False + + + + + False + True + 2 + + + + + True + True + left + + + True + False + vertical + + + + + + + + True + False + page 1 + + + False + + + + + True + False + vertical + + + + + + 1 + + + + + True + False + page 2 + + + 1 + False + + + + + True + False + vertical + + + + + + 2 + + + + + True + False + page 3 + + + 2 + False + + + + + False + True + 3 + + + + + True + True + 4 + + + + + True + False + + + False + True + 5 + + + + + + -- cgit v1.2.1