summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJuan Pablo Ugarte <juanpablougarte@gmail.com>2014-03-24 19:07:46 -0300
committerJuan Pablo Ugarte <juanpablougarte@gmail.com>2014-03-24 19:11:34 -0300
commit146f079341b1df95c1166df1f2e1aaef2617c1f0 (patch)
treec5e1eccb9548311e873ef47868cecc994d8905be /tests
parent0e1c4e08c3841c43319663386efcd5e556934db6 (diff)
downloadglade-146f079341b1df95c1166df1f2e1aaef2617c1f0.tar.gz
Fixed distcheck errors
Fixed create-widgets test GtkMessageDialog error and skip creating GtkAboutDialog
Diffstat (limited to 'tests')
-rw-r--r--tests/create-widgets.c15
1 files changed, 12 insertions, 3 deletions
diff --git a/tests/create-widgets.c b/tests/create-widgets.c
index ca2cd155..32b750ff 100644
--- a/tests/create-widgets.c
+++ b/tests/create-widgets.c
@@ -76,6 +76,13 @@ test_create_widget (gconstpointer data)
g_assert (object_finalized);
}
+static gint
+adaptor_cmp (gconstpointer a, gconstpointer b)
+{
+ return g_strcmp0 (glade_widget_adaptor_get_name ((gpointer)a),
+ glade_widget_adaptor_get_name ((gpointer)b));
+}
+
int
main (int argc,
char *argv[])
@@ -87,8 +94,8 @@ main (int argc,
glade_init ();
glade_app_get ();
- adaptors = glade_widget_adaptor_list_adaptors ();
-
+ adaptors = g_list_sort (glade_widget_adaptor_list_adaptors (), adaptor_cmp);
+
for (l = adaptors; l; l = l->next)
{
GladeWidgetAdaptor *adaptor = l->data;
@@ -104,7 +111,9 @@ main (int argc,
/* FIXME: App choosers leak some async operations after finalization, causing subsequent tests to fail */
!g_type_is_a (adaptor_type, GTK_TYPE_APP_CHOOSER) &&
/* FIXME: GtkRecentChooser tries to remove an unknown source id */
- !g_type_is_a (adaptor_type, GTK_TYPE_RECENT_CHOOSER))
+ !g_type_is_a (adaptor_type, GTK_TYPE_RECENT_CHOOSER) &&
+ /* FIXME: GtkAboutDialog in gtk 3.12 does not like to have widgets added in the action area by default */
+ !g_type_is_a (adaptor_type, GTK_TYPE_ABOUT_DIALOG))
{
gchar *test_path = g_strdup_printf ("/CreateWidget/%s", glade_widget_adaptor_get_name (adaptor));