summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDaniel Boles <dboles@src.gnome.org>2017-03-06 23:23:31 +0000
committerDaniel Boles <dboles@src.gnome.org>2017-03-07 01:07:48 +0000
commitbd89f79b8a021bc1539a9a47428c92eb0b111491 (patch)
tree572a3b4da4b6daebfc9ed0a90728b5ca59d6b92b /tests
parentaaa9ea6e3fef6905ddbbd18c36beaab7044bc41e (diff)
downloadgtk+-bd89f79b8a021bc1539a9a47428c92eb0b111491.tar.gz
testframe: label-yalign does nothing so don’t test
Since the border node was removed, this property has no effect. https://bugzilla.gnome.org/show_bug.cgi?id=778886
Diffstat (limited to 'tests')
-rw-r--r--tests/testframe.c15
1 files changed, 10 insertions, 5 deletions
diff --git a/tests/testframe.c b/tests/testframe.c
index b822f27cb3..83290b4dd1 100644
--- a/tests/testframe.c
+++ b/tests/testframe.c
@@ -117,6 +117,7 @@ spin_xalign_cb (GtkSpinButton *spin, GtkFrame *frame)
gtk_frame_set_label_align (frame, xalign, yalign);
}
+#if 0
static void
spin_yalign_cb (GtkSpinButton *spin, GtkFrame *frame)
{
@@ -127,6 +128,7 @@ spin_yalign_cb (GtkSpinButton *spin, GtkFrame *frame)
gtk_frame_get_label_align (frame, &xalign, NULL);
gtk_frame_set_label_align (frame, xalign, yalign);
}
+#endif
static void
draw_border_cb (GtkToggleButton *toggle_button, GtkFrame *frame)
@@ -179,6 +181,8 @@ int main (int argc, char **argv)
g_signal_connect (widget, "value-changed", G_CALLBACK (spin_xalign_cb), frame);
gtk_grid_attach (grid, widget, 1, 0, 1, 1);
+/* Frame:label-yalign does nothing since the border node was removed */
+#if 0
/* Spin to control :label-yalign */
widget = gtk_label_new ("label yalign:");
gtk_grid_attach (grid, widget, 0, 1, 1, 1);
@@ -187,31 +191,32 @@ int main (int argc, char **argv)
gtk_spin_button_set_value (GTK_SPIN_BUTTON (widget), yalign);
g_signal_connect (widget, "value-changed", G_CALLBACK (spin_yalign_cb), frame);
gtk_grid_attach (grid, widget, 1, 1, 1, 1);
+#endif
/* Spin to control vertical padding */
widget = gtk_label_new ("vertical padding:");
- gtk_grid_attach (grid, widget, 0, 2, 1, 1);
+ gtk_grid_attach (grid, widget, 0, 1, 1, 1);
widget = gtk_spin_button_new_with_range (0, 250, 1);
g_signal_connect (widget, "value-changed", G_CALLBACK (spin_vpadding_cb), frame);
gtk_spin_button_set_value (GTK_SPIN_BUTTON (widget), 0);
- gtk_grid_attach (grid, widget, 1, 2, 1, 1);
+ gtk_grid_attach (grid, widget, 1, 1, 1, 1);
/* Spin to control horizontal padding */
widget = gtk_label_new ("horizontal padding:");
- gtk_grid_attach (grid, widget, 0, 3, 1, 1);
+ gtk_grid_attach (grid, widget, 0, 2, 1, 1);
widget = gtk_spin_button_new_with_range (0, 250, 1);
g_signal_connect (widget, "value-changed", G_CALLBACK (spin_hpadding_cb), frame);
gtk_spin_button_set_value (GTK_SPIN_BUTTON (widget), 0);
- gtk_grid_attach (grid, widget, 1, 3, 1, 1);
+ gtk_grid_attach (grid, widget, 1, 2, 1, 1);
/* CheckButton to control whether to draw border */
draw_border = gtk_frame_get_shadow_type (frame) != GTK_SHADOW_NONE;
widget = gtk_check_button_new_with_label ("draw border");
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (widget), draw_border);
g_signal_connect (widget, "toggled", G_CALLBACK (draw_border_cb), frame);
- gtk_grid_attach (grid, widget, 0, 4, 1, 1);
+ gtk_grid_attach (grid, widget, 0, 3, 1, 1);
gtk_widget_show (window);