[gtk+] tests: Use boxes instead of vboxes
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] tests: Use boxes instead of vboxes
- Date: Tue, 7 Jun 2011 22:40:38 +0000 (UTC)
commit 682296391f14928c8829f6a988ce33682b4f114d
Author: Matthias Clasen <mclasen redhat com>
Date: Tue Jun 7 18:39:15 2011 -0400
tests: Use boxes instead of vboxes
tests/testgtk.c | 3 ++-
tests/testmultidisplay.c | 3 ++-
tests/testmultiscreen.c | 2 +-
3 files changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/tests/testgtk.c b/tests/testgtk.c
index 6aa7696..d38055d 100644
--- a/tests/testgtk.c
+++ b/tests/testgtk.c
@@ -9498,9 +9498,10 @@ create_idle_test (GtkWidget *widget)
"parent", content_area,
NULL);
box =
- g_object_new (GTK_TYPE_VBOX,
+ g_object_new (GTK_TYPE_BOX,
"visible", TRUE,
"parent", frame,
+ "orientation", GTK_ORIENTATION_VERTICAL,
NULL);
button =
g_object_connect (g_object_new (GTK_TYPE_RADIO_BUTTON,
diff --git a/tests/testmultidisplay.c b/tests/testmultidisplay.c
index 9f95526..2bf589a 100644
--- a/tests/testmultidisplay.c
+++ b/tests/testmultidisplay.c
@@ -77,8 +77,9 @@ make_selection_dialog (GdkScreen * screen,
content_area = gtk_dialog_get_content_area (GTK_DIALOG (window));
- vbox = g_object_new (GTK_TYPE_VBOX,
+ vbox = g_object_new (GTK_TYPE_BOX,
"border_width", 5,
+ "orientation", GTK_ORIENTATION_VERTICAL,
NULL);
gtk_box_pack_start (GTK_BOX (content_area), vbox, FALSE, FALSE, 0);
diff --git a/tests/testmultiscreen.c b/tests/testmultiscreen.c
index 19e2061..446f67f 100644
--- a/tests/testmultiscreen.c
+++ b/tests/testmultiscreen.c
@@ -51,7 +51,7 @@ show_hide (GtkWidget * button, gpointer data)
}
static void
-move (GtkWidget *button, GtkVBox *vbox)
+move (GtkWidget *button, GtkBox *vbox)
{
GdkScreen *screen = gtk_widget_get_screen (button);
GtkWidget *toplevel = gtk_widget_get_toplevel (button);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]