summaryrefslogtreecommitdiff
path: root/tests/testgaction.c
diff options
context:
space:
mode:
authorTimm Bäder <mail@baedert.org>2020-03-06 18:05:43 +0100
committerTimm Bäder <mail@baedert.org>2020-03-06 18:21:58 +0100
commitd1cd6aacba55ea86d8b53638a18208cb19208f23 (patch)
tree43c2a4a7f5c021c586c18b2f6034067a218851d2 /tests/testgaction.c
parent0e8850bf84cfa174ba85a6d8468c5f7056aeca46 (diff)
downloadgtk+-d1cd6aacba55ea86d8b53638a18208cb19208f23.tar.gz
tests: Add common_cflags to build
And fix all the errors and warnings resulting from that See #2491
Diffstat (limited to 'tests/testgaction.c')
-rw-r--r--tests/testgaction.c16
1 files changed, 12 insertions, 4 deletions
diff --git a/tests/testgaction.c b/tests/testgaction.c
index ac3cead041..0800a15eb0 100644
--- a/tests/testgaction.c
+++ b/tests/testgaction.c
@@ -4,26 +4,34 @@ GtkWidget *label;
static void
-change_label_button ()
+change_label_button (GSimpleAction *action,
+ GVariant *parameter,
+ gpointer user_data)
{
gtk_label_set_label (GTK_LABEL (label), "Text set from button");
}
static void
-normal_menu_item ()
+normal_menu_item (GSimpleAction *action,
+ GVariant *parameter,
+ gpointer user_data)
{
gtk_label_set_label (GTK_LABEL (label), "Text set from normal menu item");
}
static void
-toggle_menu_item ()
+toggle_menu_item (GSimpleAction *action,
+ GVariant *parameter,
+ gpointer user_data)
{
gtk_label_set_label (GTK_LABEL (label), "Text set from toggle menu item");
}
static void
-submenu_item ()
+submenu_item (GSimpleAction *action,
+ GVariant *parameter,
+ gpointer user_data)
{
gtk_label_set_label (GTK_LABEL (label), "Text set from submenu item");
}