summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMatthias Clasen <matthiasc@src.gnome.org>2009-01-24 21:53:29 +0000
committerMatthias Clasen <matthiasc@src.gnome.org>2009-01-24 21:53:29 +0000
commita8c2a3eb9f31ff9a650006b76bddbad2d5c2d7dc (patch)
tree387c54cf306b4208b9365aa43b433da85780b862 /tests
parenta576e0c9fa46d355fdecacbf133177a7d2713276 (diff)
downloadgdk-pixbuf-a8c2a3eb9f31ff9a650006b76bddbad2d5c2d7dc.tar.gz
Test icon names in actions with toolitems
svn path=/trunk/; revision=22209
Diffstat (limited to 'tests')
-rw-r--r--tests/testactions.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/testactions.c b/tests/testactions.c
index f63aac84c..9bae26e7e 100644
--- a/tests/testactions.c
+++ b/tests/testactions.c
@@ -129,6 +129,8 @@ static GtkActionEntry entries[] = {
{ "Menu2Action", NULL, "Menu _2" },
{ "Menu3Action", NULL, "_Dynamic Menu" },
+ { "attach", "mail-attachment", "_Attachment...", "<Control>m",
+ "Attach a file", G_CALLBACK (activate_action) },
{ "cut", GTK_STOCK_CUT, "C_ut", "<control>X",
"Cut the selected text to the clipboard", G_CALLBACK (activate_action) },
{ "copy", GTK_STOCK_COPY, "_Copy", "<control>C",
@@ -226,6 +228,7 @@ static const gchar *ui_info =
" <menu name=\"DynamicMenu\" action=\"Menu3Action\" />\n"
" </menubar>\n"
" <toolbar name=\"toolbar\">\n"
+" <toolitem name=\"attach\" action=\"attach\" />\n"
" <toolitem name=\"cut\" action=\"cut\" />\n"
" <toolitem name=\"copy\" action=\"copy\" />\n"
" <toolitem name=\"paste\" action=\"paste\" />\n"