summaryrefslogtreecommitdiff
path: root/gtk/gtkprogressbar.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 /gtk/gtkprogressbar.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 'gtk/gtkprogressbar.c')
-rw-r--r--gtk/gtkprogressbar.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/gtkprogressbar.c b/gtk/gtkprogressbar.c
index babb6ac9ec..8f5e1463f0 100644
--- a/gtk/gtkprogressbar.c
+++ b/gtk/gtkprogressbar.c
@@ -344,7 +344,7 @@ gtk_progress_bar_new (void)
{
GtkWidget *pbar;
- pbar = gtk_widget_new (GTK_TYPE_PROGRESS_BAR, NULL);
+ pbar = g_object_new (GTK_TYPE_PROGRESS_BAR, NULL);
return pbar;
}
@@ -356,7 +356,7 @@ gtk_progress_bar_new_with_adjustment (GtkAdjustment *adjustment)
g_return_val_if_fail (GTK_IS_ADJUSTMENT (adjustment), NULL);
- pbar = gtk_widget_new (GTK_TYPE_PROGRESS_BAR,
+ pbar = g_object_new (GTK_TYPE_PROGRESS_BAR,
"adjustment", adjustment,
NULL);