summaryrefslogtreecommitdiff
path: root/tests/testmultidisplay.c
diff options
context:
space:
mode:
authorJohan Dahlin <jdahlin@async.com.br>2008-06-19 12:25:19 +0000
committerJohan Dahlin <johan@src.gnome.org>2008-06-19 12:25:19 +0000
commit1a30e12586de407b88b003b2f2599a599a9527f5 (patch)
treef308332e1d73c53a0f21cf40fad9a2006a3fc34f /tests/testmultidisplay.c
parenta14ce91e914e4921c914b5769a890dbf8505b3e2 (diff)
downloadgtk+-1a30e12586de407b88b003b2f2599a599a9527f5.tar.gz
Use g_object_new instead of gtk_widget_new
2008-06-19 Johan Dahlin <jdahlin@async.com.br> * demos/testpixbuf.c (new_testrgb_window): * gtk/gtkctree.c (gtk_ctree_new_with_titles): * gtk/gtkitemfactory.c (gtk_item_factory_construct), (gtk_item_factory_create_item): * gtk/gtkmenu.c (gtk_menu_set_tearoff_state): * gtk/gtkprogressbar.c (gtk_progress_bar_new), (gtk_progress_bar_new_with_adjustment): * gtk/gtkscrolledwindow.c (gtk_scrolled_window_new): * gtk/gtktext.c (gtk_text_new): * gtk/gtkviewport.c (gtk_viewport_new): * tests/simple.c (main): * tests/testgtk.c (create_statusbar), (create_get_image), (create_saved_position), (create_tooltips), (create_cursors), (create_display_screen), (create_progress_bar), (create_idle_test): * tests/testmultidisplay.c (make_selection_dialog), (main): * tests/testmultiscreen.c (main): * tests/testrgb.c (new_testrgb_window): Use g_object_new instead of gtk_widget_new svn path=/trunk/; revision=20462
Diffstat (limited to 'tests/testmultidisplay.c')
-rw-r--r--tests/testmultidisplay.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/testmultidisplay.c b/tests/testmultidisplay.c
index 3074b35dbb..a4a36ec925 100644
--- a/tests/testmultidisplay.c
+++ b/tests/testmultidisplay.c
@@ -65,7 +65,7 @@ make_selection_dialog (GdkScreen * screen,
if (!screen)
screen = gdk_screen_get_default ();
- window = gtk_widget_new (GTK_TYPE_DIALOG,
+ window = g_object_new (GTK_TYPE_DIALOG,
"screen", screen,
"user_data", NULL,
"type", GTK_WINDOW_TOPLEVEL,
@@ -75,7 +75,7 @@ make_selection_dialog (GdkScreen * screen,
G_CALLBACK (gtk_main_quit), NULL);
- vbox = gtk_widget_new (GTK_TYPE_VBOX,
+ vbox = g_object_new (GTK_TYPE_VBOX,
"border_width", 5,
NULL);
gtk_box_pack_start (GTK_BOX (GTK_DIALOG (window)->vbox), vbox, FALSE, FALSE, 0);
@@ -161,11 +161,11 @@ main (int argc, char *argv[])
gtk_widget_destroy (dialog);
- entry = gtk_widget_new (GTK_TYPE_ENTRY,
+ entry = g_object_new (GTK_TYPE_ENTRY,
"activates_default", TRUE,
"visible", TRUE,
NULL);
- entry2 = gtk_widget_new (GTK_TYPE_ENTRY,
+ entry2 = g_object_new (GTK_TYPE_ENTRY,
"activates_default", TRUE,
"visible", TRUE,
NULL);