summaryrefslogtreecommitdiff
path: root/tests/testgtk.c
diff options
context:
space:
mode:
authorSoeren Sandmann <sandmann@daimi.au.dk>2002-11-13 12:58:43 +0000
committerSøren Sandmann Pedersen <ssp@src.gnome.org>2002-11-13 12:58:43 +0000
commit6bd08ac815a7b6aa7bffb916ea290af3ed30172d (patch)
treea16deb292228a1bd4efb4885a50689dd0cbd6a5f /tests/testgtk.c
parente96a41be45f82af233f5171481c3fecbe95b5b6b (diff)
downloadgtk+-6bd08ac815a7b6aa7bffb916ea290af3ed30172d.tar.gz
- comment out check_inconsistent_aa_bits[].
Wed Nov 13 14:01:44 2002 Soeren Sandmann <sandmann@daimi.au.dk> * gtk/gtkstyle.c: - comment out check_inconsistent_aa_bits[]. - use fg/bg with a generated aa color to draw check and option marks in menu items. - use text/base to draw check and option buttons, except when state is ACTIVE, in which case we use fg/bg with a generated aa color. * tests/testgtk.c (menu_items): Add three check items.
Diffstat (limited to 'tests/testgtk.c')
-rw-r--r--tests/testgtk.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/testgtk.c b/tests/testgtk.c
index fd406f50fd..437a2ee3c2 100644
--- a/tests/testgtk.c
+++ b/tests/testgtk.c
@@ -3758,6 +3758,9 @@ static GtkItemFactoryEntry menu_items[] =
{ "/_Preferences/Shape/_Rectangle", NULL, gtk_ifactory_cb, 0, "/Preferences/Shape/Square" },
{ "/_Preferences/Shape/_Oval", NULL, gtk_ifactory_cb, 0, "/Preferences/Shape/Rectangle" },
{ "/_Preferences/Shape/_Image", NULL, gtk_ifactory_cb, 0, "<ImageItem>", apple },
+ { "/_Preferences/Coffee", NULL, gtk_ifactory_cb, 0, "<CheckItem>" },
+ { "/_Preferences/Toast", NULL, gtk_ifactory_cb, 0, "<CheckItem>" },
+ { "/_Preferences/Marshmallow Froot Loops", NULL, gtk_ifactory_cb, 0, "<CheckItem>" },
/* For testing deletion of menus */
{ "/_Preferences/Should_NotAppear", NULL, 0, 0, "<Branch>" },
@@ -3817,6 +3820,21 @@ create_item_factory (GtkWidget *widget)
"/Preferences/Shape/Oval")),
TRUE);
+ /* preselect /Preferences/Coffee
+ */
+ gtk_check_menu_item_set_active (GTK_CHECK_MENU_ITEM (gtk_item_factory_get_item (item_factory,
+ "/Preferences/Coffee")),
+ TRUE);
+
+ /* preselect /Preferences/Marshmallow Froot Loops and set it insensitive
+ */
+ gtk_check_menu_item_set_active (GTK_CHECK_MENU_ITEM (gtk_item_factory_get_item (item_factory,
+ "/Preferences/Marshmallow Froot Loops")),
+ TRUE);
+ gtk_widget_set_sensitive (GTK_WIDGET (gtk_item_factory_get_item (item_factory,
+ "/Preferences/Marshmallow Froot Loops")),
+ FALSE);
+
/* Test how tooltips (ugh) work on menu items
*/
tooltips = gtk_tooltips_new ();