diff options
Diffstat (limited to 'testsuite')
-rw-r--r-- | testsuite/gtk/Makefile.am | 1 | ||||
-rw-r--r-- | testsuite/gtk/action.c | 82 | ||||
-rw-r--r-- | testsuite/gtk/builder.c | 5 |
3 files changed, 0 insertions, 88 deletions
diff --git a/testsuite/gtk/Makefile.am b/testsuite/gtk/Makefile.am index 3dde3a086f..0ea22f305d 100644 --- a/testsuite/gtk/Makefile.am +++ b/testsuite/gtk/Makefile.am @@ -34,7 +34,6 @@ TESTS_ENVIRONMENT = \ TEST_PROGS += \ accel \ accessible \ - action \ adjustment \ bitmask \ builder \ diff --git a/testsuite/gtk/action.c b/testsuite/gtk/action.c deleted file mode 100644 index 61631d9efb..0000000000 --- a/testsuite/gtk/action.c +++ /dev/null @@ -1,82 +0,0 @@ -/* GtkAction tests. - * - * Authors: Jan Arne Petersen <jpetersen@openismus.com> - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library. If not, see <http://www.gnu.org/licenses/>. - */ - -#define GDK_DISABLE_DEPRECATION_WARNINGS -#include <gtk/gtk.h> - -/* Fixture */ - -typedef struct -{ - GtkAction *action; -} ActionTest; - -static void -action_test_setup (ActionTest *fixture, - gconstpointer test_data) -{ - fixture->action = gtk_action_new ("name", "label", NULL, NULL); -} - -static void -action_test_teardown (ActionTest *fixture, - gconstpointer test_data) -{ - g_object_unref (fixture->action); -} - -static void -notify_count_emmisions (GObject *object, - GParamSpec *pspec, - gpointer data) -{ - unsigned int *i = data; - (*i)++; -} - -static void -menu_item_label_notify_count (ActionTest *fixture, - gconstpointer test_data) -{ - GtkWidget *item = gtk_menu_item_new (); - unsigned int emmisions = 0; - - g_object_ref_sink (item); - g_signal_connect (item, "notify::label", - G_CALLBACK (notify_count_emmisions), &emmisions); - - g_object_unref (item); -} - -/* main */ - -int -main (int argc, - char **argv) -{ - gtk_test_init (&argc, &argv, NULL); - - g_test_add ("/Action/MenuItem/label-notify-count", - ActionTest, NULL, - action_test_setup, - menu_item_label_notify_count, - action_test_teardown); - - return g_test_run (); -} - diff --git a/testsuite/gtk/builder.c b/testsuite/gtk/builder.c index f2a01f399a..cf5b1f4125 100644 --- a/testsuite/gtk/builder.c +++ b/testsuite/gtk/builder.c @@ -1921,13 +1921,8 @@ test_add_objects (void) GError *error; gint ret; GObject *obj; - GtkWidget *menubar; - GObject *menu, *label; - GList *children; gchar *objects[2] = {"mainbox", NULL}; gchar *objects2[3] = {"mainbox", "window2", NULL}; - gchar *objects3[3] = {"uimgr1", "menubar1"}; - gchar *objects4[2] = {"uimgr1", NULL}; const gchar buffer[] = "<interface>" " <object class=\"GtkWindow\" id=\"window\">" |