summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJuan Pablo Ugarte <juanpablougarte@gmail.com>2020-07-20 17:54:40 -0300
committerJuan Pablo Ugarte <juanpablougarte@gmail.com>2020-07-26 18:00:20 -0300
commit1e85f469b9b05ebf3c5485977f047c836486e1e5 (patch)
tree299189b208d609d4e43a690f41d348ad601f501a /tests
parent59e985a27e29bf032bcbfab769ef66380df9ee23 (diff)
downloadglade-1e85f469b9b05ebf3c5485977f047c836486e1e5.tar.gz
Tests: replace \t with spaces
Diffstat (limited to 'tests')
-rw-r--r--tests/add-child.c24
-rw-r--r--tests/create-widgets.c48
2 files changed, 36 insertions, 36 deletions
diff --git a/tests/add-child.c b/tests/add-child.c
index 5359e79d..010430f5 100644
--- a/tests/add-child.c
+++ b/tests/add-child.c
@@ -14,9 +14,9 @@ typedef struct {
/* Avoid warnings from GVFS-RemoteVolumeMonitor */
static gboolean
ignore_gvfs_warning (const gchar *log_domain,
- GLogLevelFlags log_level,
- const gchar *message,
- gpointer user_data)
+ GLogLevelFlags log_level,
+ const gchar *message,
+ gpointer user_data)
{
if (g_strcmp0 (log_domain, "GVFS-RemoteVolumeMonitor") == 0)
return FALSE;
@@ -34,7 +34,7 @@ main_loop_quit_cb (gpointer data)
static void
check_finalized (gpointer data,
- GObject *where_the_object_was)
+ GObject *where_the_object_was)
{
gboolean *did_finalize = (gboolean *)data;
@@ -104,15 +104,15 @@ test_add_child (gconstpointer data)
static void
add_test (GType parent_type,
- GType child_type,
- AssertParentedFunc func)
+ GType child_type,
+ AssertParentedFunc func)
{
gchar *test_path;
TestData *data = g_new (TestData, 1);
test_path = g_strdup_printf ("/AddChild/%s/%s",
- g_type_name (parent_type),
- g_type_name (child_type));
+ g_type_name (parent_type),
+ g_type_name (child_type));
data->parent_type = parent_type;
data->child_type = child_type;
@@ -124,14 +124,14 @@ add_test (GType parent_type,
static void
assert_widget_parented (GObject *parent,
- GObject *child)
+ GObject *child)
{
g_assert_true (gtk_widget_get_parent (GTK_WIDGET (child)) == GTK_WIDGET (parent));
}
static void
assert_submenu (GObject *parent,
- GObject *child)
+ GObject *child)
{
if (GTK_IS_MENU_ITEM (parent))
g_assert_true (gtk_menu_item_get_submenu (GTK_MENU_ITEM (parent)) == GTK_WIDGET (child));
@@ -143,7 +143,7 @@ assert_submenu (GObject *parent,
static void
assert_cell_parented (GObject *parent,
- GObject *child)
+ GObject *child)
{
GList *cells;
@@ -154,7 +154,7 @@ assert_cell_parented (GObject *parent,
static void
assert_column_parented (GObject *parent,
- GObject *child)
+ GObject *child)
{
g_assert_true (gtk_tree_view_get_column (GTK_TREE_VIEW (parent), 0) == GTK_TREE_VIEW_COLUMN (child));
}
diff --git a/tests/create-widgets.c b/tests/create-widgets.c
index ea39d263..deec134f 100644
--- a/tests/create-widgets.c
+++ b/tests/create-widgets.c
@@ -6,9 +6,9 @@
/* Avoid warnings from GVFS-RemoteVolumeMonitor */
static gboolean
ignore_gvfs_warning (const gchar *log_domain,
- GLogLevelFlags log_level,
- const gchar *message,
- gpointer user_data)
+ GLogLevelFlags log_level,
+ const gchar *message,
+ gpointer user_data)
{
if (g_strcmp0 (log_domain, "GVFS-RemoteVolumeMonitor") == 0)
return FALSE;
@@ -26,7 +26,7 @@ main_loop_quit_cb (gpointer data)
static void
check_finalized (gpointer data,
- GObject *where_the_object_was)
+ GObject *where_the_object_was)
{
gboolean *did_finalize = (gboolean *)data;
@@ -104,27 +104,27 @@ main (int argc,
adaptor_type = glade_widget_adaptor_get_object_type (adaptor);
if (G_TYPE_IS_INSTANTIATABLE (adaptor_type) && !G_TYPE_IS_ABSTRACT (adaptor_type) &&
- /* FIXME: FileChooserButton leaks a GTask which will crash in the following test */
- adaptor_type != GTK_TYPE_FILE_CHOOSER_BUTTON &&
+ /* FIXME: FileChooserButton leaks a GTask which will crash in the following test */
+ adaptor_type != GTK_TYPE_FILE_CHOOSER_BUTTON &&
/* FIXME: GtkRecentChooser tries to remove an unknown source id */
- !g_type_is_a (adaptor_type, GTK_TYPE_RECENT_CHOOSER) &&
- /* FIXME: can not create a themed icon without a name */
- !g_type_is_a (adaptor_type, G_TYPE_THEMED_ICON) &&
- /* FIXME: Dialogs now use a headerbar by default making gtk give a warning when adding a widget to the action area */
- !g_type_is_a (adaptor_type, GTK_TYPE_DIALOG) &&
- /* FIXME: The same goes for assistant */
- !g_type_is_a (adaptor_type, GTK_TYPE_ASSISTANT) &&
- /* FIXME: GtkPopoverMenu gives a few warnings */
- !g_type_is_a (adaptor_type, GTK_TYPE_POPOVER_MENU) &&
- /* FIXME: GtkFileChooserNative is hard to test here */
- !g_type_is_a (adaptor_type, GTK_TYPE_FILE_CHOOSER_NATIVE))
- {
- gchar *test_path = g_strdup_printf ("/CreateWidget/%s", glade_widget_adaptor_get_name (adaptor));
-
- g_test_add_data_func (test_path, adaptor, test_create_widget);
-
- g_free (test_path);
- }
+ !g_type_is_a (adaptor_type, GTK_TYPE_RECENT_CHOOSER) &&
+ /* FIXME: can not create a themed icon without a name */
+ !g_type_is_a (adaptor_type, G_TYPE_THEMED_ICON) &&
+ /* FIXME: Dialogs now use a headerbar by default making gtk give a warning when adding a widget to the action area */
+ !g_type_is_a (adaptor_type, GTK_TYPE_DIALOG) &&
+ /* FIXME: The same goes for assistant */
+ !g_type_is_a (adaptor_type, GTK_TYPE_ASSISTANT) &&
+ /* FIXME: GtkPopoverMenu gives a few warnings */
+ !g_type_is_a (adaptor_type, GTK_TYPE_POPOVER_MENU) &&
+ /* FIXME: GtkFileChooserNative is hard to test here */
+ !g_type_is_a (adaptor_type, GTK_TYPE_FILE_CHOOSER_NATIVE))
+ {
+ gchar *test_path = g_strdup_printf ("/CreateWidget/%s", glade_widget_adaptor_get_name (adaptor));
+
+ g_test_add_data_func (test_path, adaptor, test_create_widget);
+
+ g_free (test_path);
+ }
}
g_list_free (adaptors);