diff options
author | Johan Dahlin <jdahlin@async.com.br> | 2008-06-19 12:25:19 +0000 |
---|---|---|
committer | Johan Dahlin <johan@src.gnome.org> | 2008-06-19 12:25:19 +0000 |
commit | 1a30e12586de407b88b003b2f2599a599a9527f5 (patch) | |
tree | f308332e1d73c53a0f21cf40fad9a2006a3fc34f /tests/simple.c | |
parent | a14ce91e914e4921c914b5769a890dbf8505b3e2 (diff) | |
download | gtk+-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/simple.c')
-rw-r--r-- | tests/simple.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/simple.c b/tests/simple.c index 5fd6822e3c..0d29a04185 100644 --- a/tests/simple.c +++ b/tests/simple.c @@ -37,7 +37,7 @@ main (int argc, char *argv[]) /* gdk_progclass = g_strdup ("XTerm"); */ gtk_init (&argc, &argv); - window = g_object_connect (gtk_widget_new (gtk_window_get_type (), + window = g_object_connect (g_object_new (gtk_window_get_type (), "user_data", NULL, "type", GTK_WINDOW_TOPLEVEL, "title", "hello world", @@ -47,7 +47,7 @@ main (int argc, char *argv[]) NULL), "signal::destroy", gtk_main_quit, NULL, NULL); - button = g_object_connect (gtk_widget_new (gtk_button_get_type (), + button = g_object_connect (g_object_new (gtk_button_get_type (), "GtkButton::label", "hello world", "GtkWidget::parent", window, "GtkWidget::visible", TRUE, |