diff options
author | Timm Bäder <mail@baedert.org> | 2017-04-21 18:59:59 +0200 |
---|---|---|
committer | Timm Bäder <mail@baedert.org> | 2017-04-25 20:30:37 +0200 |
commit | 5729ea7744c2a41ae8fb833db6690a6aa5ad7a84 (patch) | |
tree | ddda46f8b6c07a999ee9b844ec3a9c863b55a850 /tests/testtooltips.c | |
parent | 8f4c0bea6558dc98a2abd7e63436b1ce4caf689e (diff) | |
download | gtk+-5729ea7744c2a41ae8fb833db6690a6aa5ad7a84.tar.gz |
box: Remove expand child property
GtkWidget already has hexpand/vexpand properties.
Diffstat (limited to 'tests/testtooltips.c')
-rw-r--r-- | tests/testtooltips.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/tests/testtooltips.c b/tests/testtooltips.c index 6ed4066cf9..64bde2d598 100644 --- a/tests/testtooltips.c +++ b/tests/testtooltips.c @@ -275,7 +275,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); + gtk_box_pack_start (GTK_BOX (box), button, FALSE); text = gtk_widget_get_tooltip_text (button); markup = gtk_widget_get_tooltip_markup (button); @@ -288,13 +288,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); + gtk_box_pack_start (GTK_BOX (box), button, 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); + gtk_box_pack_start (GTK_BOX (box), button, FALSE); text = gtk_widget_get_tooltip_text (button); markup = gtk_widget_get_tooltip_markup (button); @@ -306,7 +306,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); + gtk_box_pack_start (GTK_BOX (box), button, FALSE); text = gtk_widget_get_tooltip_text (button); markup = gtk_widget_get_tooltip_markup (button); @@ -316,7 +316,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); + gtk_box_pack_start (GTK_BOX (box), button, FALSE); tooltip_window = gtk_window_new (GTK_WINDOW_POPUP); tooltip_button = gtk_label_new ("blaat!"); @@ -337,7 +337,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); + gtk_box_pack_start (GTK_BOX (box), button, FALSE); /* Testcases from Kris without a tree view don't exist. */ tree_view = gtk_tree_view_new_with_model (create_model ()); @@ -360,7 +360,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); + gtk_box_pack_start (GTK_BOX (box), tree_view, FALSE); /* And a text view for Matthias */ buffer = gtk_text_buffer_new (NULL); @@ -384,7 +384,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); + gtk_box_pack_start (GTK_BOX (box), text_view, FALSE); /* Drawing area */ drawing_area = gtk_drawing_area_new (); @@ -395,7 +395,7 @@ main (int argc, char *argv[]) g_object_set (drawing_area, "has-tooltip", TRUE, 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); + gtk_box_pack_start (GTK_BOX (box), drawing_area, FALSE); button = gtk_label_new ("Custom tooltip I"); label = gtk_label_new ("See, custom"); @@ -403,13 +403,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); + gtk_box_pack_start (GTK_BOX (box), button, 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); + gtk_box_pack_start (GTK_BOX (box), button, FALSE); g_signal_connect (button, "query-tooltip", G_CALLBACK (query_tooltip_label_cb), label); |