X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=tests%2Ftestactions.c;h=e59fa886013e00010d733d80afa10050022af1ea;hb=HEAD;hp=9b97b7c605c5ac946037f7dbd9585522d57ed6fb;hpb=2a9c3e80e7657c83d090d35905f67f8149171d4d;p=~andy%2Fgtk
diff --git a/tests/testactions.c b/tests/testactions.c
index 9b97b7c60..e59fa8860 100644
--- a/tests/testactions.c
+++ b/tests/testactions.c
@@ -12,13 +12,10 @@
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public
- * License along with this library; if not, write to the
- * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
- * Boston, MA 02111-1307, USA.
+ * License along with this library. If not, see .
*/
-#undef GTK_DISABLE_DEPRECATED
-#include
+#include "config.h"
#include
static GtkActionGroup *action_group = NULL;
@@ -130,6 +127,8 @@ static GtkActionEntry entries[] = {
{ "Menu2Action", NULL, "Menu _2" },
{ "Menu3Action", NULL, "_Dynamic Menu" },
+ { "attach", "mail-attachment", "_Attachment...", "m",
+ "Attach a file", G_CALLBACK (activate_action) },
{ "cut", GTK_STOCK_CUT, "C_ut", "X",
"Cut the selected text to the clipboard", G_CALLBACK (activate_action) },
{ "copy", GTK_STOCK_COPY, "_Copy", "C",
@@ -227,6 +226,7 @@ static const gchar *ui_info =
" \n"
" \n"
" \n"
+" \n"
" \n"
" \n"
" \n"
@@ -358,7 +358,7 @@ create_window (GtkActionGroup *action_group)
g_signal_connect_swapped (window, "destroy", G_CALLBACK (g_object_unref), merge);
g_signal_connect (window, "destroy", G_CALLBACK (gtk_main_quit), NULL);
- box = gtk_vbox_new (FALSE, 0);
+ box = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
gtk_container_add (GTK_CONTAINER (window), box);
gtk_widget_show (box);
@@ -374,7 +374,7 @@ create_window (GtkActionGroup *action_group)
g_error_free (error);
}
- hbox = gtk_hbox_new (FALSE, 0);
+ hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
gtk_box_pack_end (GTK_BOX (box), hbox, FALSE, FALSE, 0);
gtk_widget_show (hbox);