]> Pileus Git - ~andy/gtk/commitdiff
Test icon names in actions with toolitems
authorMatthias Clasen <matthiasc@src.gnome.org>
Sat, 24 Jan 2009 21:53:29 +0000 (21:53 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Sat, 24 Jan 2009 21:53:29 +0000 (21:53 +0000)
svn path=/trunk/; revision=22209

ChangeLog
tests/testactions.c

index 8dffd056f86b160a4ef2911c06a8e36eeaac57dd..c8e1f3823eb0df9afe41b22e089e690e73292c14 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,4 +1,9 @@
-2009-01-23  Matthias Clasen  <mclasen@redhat.com>
+2009-01-24  Matthias Clasen  <mclasen@redhat.com>
+
+       * tests/testactions.c: Add a testcase for toolitems using
+       icon names.
+
+2009-01-24  Matthias Clasen  <mclasen@redhat.com>
 
        * gdk/x11/gdkcursor-x11.c (_gdk_x11_cursor_update_theme):
        Don't update blank cursors.
index f63aac84c6a91421484a4b23da642b76621464e2..9bae26e7ecb68fb93ca03b1a074d6351de15c8ee 100644 (file)
@@ -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"