summaryrefslogtreecommitdiff
path: root/tests/testtooltips.c
diff options
context:
space:
mode:
authorTimm Bäder <mail@baedert.org>2016-10-02 17:37:22 +0200
committerBenjamin Otte <otte@redhat.com>2016-10-16 18:17:21 +0200
commitf45dadadd00d892ba16dc081240987425bc32346 (patch)
tree181fc50993716de719c7d993c9d66bb7b2adb090 /tests/testtooltips.c
parentc301357627172e4aeb3a7cb8d04fd5428d930df4 (diff)
downloadgtk+-f45dadadd00d892ba16dc081240987425bc32346.tar.gz
box: Remove 'padding' child property
Diffstat (limited to 'tests/testtooltips.c')
-rw-r--r--tests/testtooltips.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/tests/testtooltips.c b/tests/testtooltips.c
index 853239e97b..027bdacebd 100644
--- a/tests/testtooltips.c
+++ b/tests/testtooltips.c
@@ -292,7 +292,7 @@ main (int argc, char *argv[])
/* A check button using the tooltip-markup property */
button = gtk_check_button_new_with_label ("This one uses the tooltip-markup property");
gtk_widget_set_tooltip_text (button, "Hello, I am a static tooltip.");
- gtk_box_pack_start (GTK_BOX (box), button, FALSE, FALSE, 0);
+ gtk_box_pack_start (GTK_BOX (box), button, FALSE, FALSE);
text = gtk_widget_get_tooltip_text (button);
markup = gtk_widget_get_tooltip_markup (button);
@@ -305,13 +305,13 @@ main (int argc, char *argv[])
g_object_set (button, "has-tooltip", TRUE, NULL);
g_signal_connect (button, "query-tooltip",
G_CALLBACK (query_tooltip_cb), NULL);
- gtk_box_pack_start (GTK_BOX (box), button, FALSE, FALSE, 0);
+ gtk_box_pack_start (GTK_BOX (box), button, FALSE, FALSE);
/* A label */
button = gtk_label_new ("I am just a label");
gtk_label_set_selectable (GTK_LABEL (button), FALSE);
gtk_widget_set_tooltip_text (button, "Label & and tooltip");
- gtk_box_pack_start (GTK_BOX (box), button, FALSE, FALSE, 0);
+ gtk_box_pack_start (GTK_BOX (box), button, FALSE, FALSE);
text = gtk_widget_get_tooltip_text (button);
markup = gtk_widget_get_tooltip_markup (button);
@@ -323,7 +323,7 @@ main (int argc, char *argv[])
button = gtk_label_new ("I am a selectable label");
gtk_label_set_selectable (GTK_LABEL (button), TRUE);
gtk_widget_set_tooltip_markup (button, "<b>Another</b> Label tooltip");
- gtk_box_pack_start (GTK_BOX (box), button, FALSE, FALSE, 0);
+ gtk_box_pack_start (GTK_BOX (box), button, FALSE, FALSE);
text = gtk_widget_get_tooltip_text (button);
markup = gtk_widget_get_tooltip_markup (button);
@@ -333,7 +333,7 @@ main (int argc, char *argv[])
/* Another one, with a custom tooltip window */
button = gtk_check_button_new_with_label ("This one has a custom tooltip window!");
- gtk_box_pack_start (GTK_BOX (box), button, FALSE, FALSE, 0);
+ gtk_box_pack_start (GTK_BOX (box), button, FALSE, FALSE);
tooltip_window = gtk_window_new (GTK_WINDOW_POPUP);
tooltip_button = gtk_label_new ("blaat!");
@@ -354,7 +354,7 @@ main (int argc, char *argv[])
button = gtk_button_new_with_label ("This one is insensitive");
gtk_widget_set_sensitive (button, FALSE);
g_object_set (button, "tooltip-text", "Insensitive!", NULL);
- gtk_box_pack_start (GTK_BOX (box), button, FALSE, FALSE, 0);
+ gtk_box_pack_start (GTK_BOX (box), button, FALSE, FALSE);
/* Testcases from Kris without a tree view don't exist. */
tree_view = gtk_tree_view_new_with_model (create_model ());
@@ -377,7 +377,7 @@ main (int argc, char *argv[])
gtk_tree_view_column_set_clickable (column, TRUE);
g_object_set (gtk_tree_view_column_get_button (column), "tooltip-text", "Header", NULL);
- gtk_box_pack_start (GTK_BOX (box), tree_view, FALSE, FALSE, 2);
+ gtk_box_pack_start (GTK_BOX (box), tree_view, FALSE, FALSE);
/* And a text view for Matthias */
buffer = gtk_text_buffer_new (NULL);
@@ -401,7 +401,7 @@ main (int argc, char *argv[])
g_signal_connect (text_view, "query-tooltip",
G_CALLBACK (query_tooltip_text_view_cb), tag);
- gtk_box_pack_start (GTK_BOX (box), text_view, FALSE, FALSE, 2);
+ gtk_box_pack_start (GTK_BOX (box), text_view, FALSE, FALSE);
/* Drawing area */
drawing_area = gtk_drawing_area_new ();
@@ -411,7 +411,7 @@ main (int argc, char *argv[])
G_CALLBACK (drawing_area_draw), NULL);
g_signal_connect (drawing_area, "query-tooltip",
G_CALLBACK (query_tooltip_drawing_area_cb), NULL);
- gtk_box_pack_start (GTK_BOX (box), drawing_area, FALSE, FALSE, 2);
+ gtk_box_pack_start (GTK_BOX (box), drawing_area, FALSE, FALSE);
button = gtk_label_new ("Custom tooltip I");
label = gtk_label_new ("See, custom");
@@ -419,13 +419,13 @@ main (int argc, char *argv[])
g_object_set (button, "has-tooltip", TRUE, NULL);
g_signal_connect (button, "query-tooltip",
G_CALLBACK (query_tooltip_label_cb), label);
- gtk_box_pack_start (GTK_BOX (box), button, FALSE, FALSE, 2);
+ gtk_box_pack_start (GTK_BOX (box), button, FALSE, FALSE);
button = gtk_label_new ("Custom tooltip II");
label = gtk_label_new ("See, custom, too");
g_object_ref_sink (label);
g_object_set (button, "has-tooltip", TRUE, NULL);
- gtk_box_pack_start (GTK_BOX (box), button, FALSE, FALSE, 2);
+ gtk_box_pack_start (GTK_BOX (box), button, FALSE, FALSE);
g_signal_connect (button, "query-tooltip",
G_CALLBACK (query_tooltip_label_cb), label);