[gtk+/wip/baseline2] testbaseline: Test toggle, radio and checkbuttons
- From: Alexander Larsson <alexl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/baseline2] testbaseline: Test toggle, radio and checkbuttons
- Date: Fri, 22 Mar 2013 16:02:09 +0000 (UTC)
commit 601b5f4f524351d3369216bd19385e8f9fb253e4
Author: Alexander Larsson <alexl redhat com>
Date: Fri Mar 22 12:02:02 2013 +0100
testbaseline: Test toggle, radio and checkbuttons
tests/testbaseline.c | 21 +++++++++++++++++++++
1 files changed, 21 insertions(+), 0 deletions(-)
---
diff --git a/tests/testbaseline.c b/tests/testbaseline.c
index 2313447..bd31479 100644
--- a/tests/testbaseline.c
+++ b/tests/testbaseline.c
@@ -145,6 +145,27 @@ main (int argc,
gtk_container_add (GTK_CONTAINER (hbox), button);
}
+
+ button = gtk_toggle_button_new_with_label ("│Xyj,Ö");
+ if (j == 0)
+ gtk_widget_set_valign (button, GTK_ALIGN_BASELINE);
+ gtk_container_add (GTK_CONTAINER (hbox), button);
+
+ button = gtk_toggle_button_new_with_label ("│Xyj,Ö");
+ gtk_toggle_button_set_mode (GTK_TOGGLE_BUTTON (button), TRUE);
+ if (j == 0)
+ gtk_widget_set_valign (button, GTK_ALIGN_BASELINE);
+ gtk_container_add (GTK_CONTAINER (hbox), button);
+
+ button = gtk_check_button_new_with_label ("│Xyj,Ö");
+ if (j == 0)
+ gtk_widget_set_valign (button, GTK_ALIGN_BASELINE);
+ gtk_container_add (GTK_CONTAINER (hbox), button);
+
+ button = gtk_radio_button_new_with_label (NULL, "│Xyj,Ö");
+ if (j == 0)
+ gtk_widget_set_valign (button, GTK_ALIGN_BASELINE);
+ gtk_container_add (GTK_CONTAINER (hbox), button);
}
grid_hbox = hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 10);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]