From 57f51f5d54399aa2af2368c3ffcd4dfec1b9089f Mon Sep 17 00:00:00 2001 From: Rodney Dawes Date: Wed, 21 Mar 2007 19:31:01 +0000 Subject: Add a new API call gtk_icon_theme_list_contexts so that one can choose 2007-03-21 Rodney Dawes * gtk/gtk.symbols: * gtk/gtkicontheme.[ch]: * docs/reference/gtk/gtk-sections.txt: * tests/testicontheme.c: Add a new API call gtk_icon_theme_list_contexts so that one can choose icons from a theme by context (#420719) svn path=/trunk/; revision=17550 --- tests/testicontheme.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'tests') diff --git a/tests/testicontheme.c b/tests/testicontheme.c index a5ded578df..c14f4d2d32 100644 --- a/tests/testicontheme.c +++ b/tests/testicontheme.c @@ -31,6 +31,8 @@ usage (void) "usage: test-icon-theme list [context]\n" " or\n" "usage: test-icon-theme display [size]\n" + " or\n" + "usage: test-icon-theme contexts \n" ); } @@ -98,6 +100,16 @@ main (int argc, char *argv[]) list = gtk_icon_theme_list_icons (icon_theme, context); + while (list) + { + g_print ("%s\n", (char *)list->data); + list = list->next; + } + } + else if (strcmp (argv[1], "contexts") == 0) + { + list = gtk_icon_theme_list_contexts (icon_theme); + while (list) { g_print ("%s\n", (char *)list->data); -- cgit v1.2.1