diff options
author | Rodney Dawes <dobey@novell.com> | 2007-03-21 19:31:01 +0000 |
---|---|---|
committer | Rodney Dawes <dobey@src.gnome.org> | 2007-03-21 19:31:01 +0000 |
commit | 57f51f5d54399aa2af2368c3ffcd4dfec1b9089f (patch) | |
tree | dab409ca0eba5859d5ac879fed719298e7c877ea /tests | |
parent | 846f70ddecc9ab57887022ce1959dcc021a3ed38 (diff) | |
download | gtk+-57f51f5d54399aa2af2368c3ffcd4dfec1b9089f.tar.gz |
Add a new API call gtk_icon_theme_list_contexts so that one can choose
2007-03-21 Rodney Dawes <dobey@novell.com>
* 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
Diffstat (limited to 'tests')
-rw-r--r-- | tests/testicontheme.c | 12 |
1 files changed, 12 insertions, 0 deletions
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 <theme name> [context]\n" " or\n" "usage: test-icon-theme display <theme name> <icon name> [size]\n" + " or\n" + "usage: test-icon-theme contexts <theme name>\n" ); } @@ -104,6 +106,16 @@ main (int argc, char *argv[]) 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); + list = list->next; + } + } else if (strcmp (argv[1], "lookup") == 0) { if (argc < 4) |