diff options
Diffstat (limited to 'gtk')
-rw-r--r-- | gtk/gtkctree.c | 2 | ||||
-rw-r--r-- | gtk/gtkitemfactory.c | 8 | ||||
-rw-r--r-- | gtk/gtkmenu.c | 2 | ||||
-rw-r--r-- | gtk/gtkprogressbar.c | 4 | ||||
-rw-r--r-- | gtk/gtkscrolledwindow.c | 2 | ||||
-rw-r--r-- | gtk/gtktext.c | 2 | ||||
-rw-r--r-- | gtk/gtkviewport.c | 2 |
7 files changed, 11 insertions, 11 deletions
diff --git a/gtk/gtkctree.c b/gtk/gtkctree.c index 5df4e0d9a9..7adcf6917f 100644 --- a/gtk/gtkctree.c +++ b/gtk/gtkctree.c @@ -3572,7 +3572,7 @@ gtk_ctree_new_with_titles (gint columns, g_return_val_if_fail (columns > 0, NULL); g_return_val_if_fail (tree_column >= 0 && tree_column < columns, NULL); - widget = gtk_widget_new (GTK_TYPE_CTREE, + widget = g_object_new (GTK_TYPE_CTREE, "n_columns", columns, "tree_column", tree_column, NULL); diff --git a/gtk/gtkitemfactory.c b/gtk/gtkitemfactory.c index b866223667..62a8dc897b 100644 --- a/gtk/gtkitemfactory.c +++ b/gtk/gtkitemfactory.c @@ -407,7 +407,7 @@ gtk_item_factory_construct (GtkItemFactory *ifactory, ifactory->accel_group = gtk_accel_group_new (); ifactory->path = g_strdup (path); - ifactory->widget = g_object_connect (gtk_widget_new (container_type, NULL), + ifactory->widget = g_object_connect (g_object_new (container_type, NULL), "signal::destroy", gtk_widget_destroyed, &ifactory->widget, NULL); g_object_ref_sink (ifactory); @@ -1035,7 +1035,7 @@ gtk_item_factory_create_item (GtkItemFactory *ifactory, accelerator = entry->accelerator; - widget = gtk_widget_new (type, + widget = g_object_new (type, "visible", TRUE, "sensitive", (type_id != quark_type_separator_item && type_id != quark_type_title), @@ -1088,7 +1088,7 @@ gtk_item_factory_create_item (GtkItemFactory *ifactory, { GtkWidget *label; - label = gtk_widget_new (GTK_TYPE_ACCEL_LABEL, + label = g_object_new (GTK_TYPE_ACCEL_LABEL, "visible", TRUE, "parent", widget, "accel-widget", widget, @@ -1111,7 +1111,7 @@ gtk_item_factory_create_item (GtkItemFactory *ifactory, gtk_menu_item_set_right_justified (GTK_MENU_ITEM (widget), TRUE); parent = widget; - widget = gtk_widget_new (GTK_TYPE_MENU, NULL); + widget = g_object_new (GTK_TYPE_MENU, NULL); p = g_strconcat (ifactory->path, path, NULL); gtk_menu_set_accel_path (GTK_MENU (widget), p); g_free (p); diff --git a/gtk/gtkmenu.c b/gtk/gtkmenu.c index 8ea3ba866a..298122a01b 100644 --- a/gtk/gtkmenu.c +++ b/gtk/gtkmenu.c @@ -1814,7 +1814,7 @@ gtk_menu_set_tearoff_state (GtkMenu *menu, { GtkWidget *toplevel; - menu->tearoff_window = gtk_widget_new (GTK_TYPE_WINDOW, + menu->tearoff_window = g_object_new (GTK_TYPE_WINDOW, "type", GTK_WINDOW_TOPLEVEL, "screen", gtk_widget_get_screen (menu->toplevel), "app-paintable", TRUE, 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); diff --git a/gtk/gtkscrolledwindow.c b/gtk/gtkscrolledwindow.c index 91f3258ce1..16dbc6a9b9 100644 --- a/gtk/gtkscrolledwindow.c +++ b/gtk/gtkscrolledwindow.c @@ -389,7 +389,7 @@ gtk_scrolled_window_new (GtkAdjustment *hadjustment, if (vadjustment) g_return_val_if_fail (GTK_IS_ADJUSTMENT (vadjustment), NULL); - scrolled_window = gtk_widget_new (GTK_TYPE_SCROLLED_WINDOW, + scrolled_window = g_object_new (GTK_TYPE_SCROLLED_WINDOW, "hadjustment", hadjustment, "vadjustment", vadjustment, NULL); diff --git a/gtk/gtktext.c b/gtk/gtktext.c index 6bcab8afc0..817876175c 100644 --- a/gtk/gtktext.c +++ b/gtk/gtktext.c @@ -710,7 +710,7 @@ gtk_text_new (GtkAdjustment *hadj, if (vadj) g_return_val_if_fail (GTK_IS_ADJUSTMENT (vadj), NULL); - text = gtk_widget_new (GTK_TYPE_TEXT, + text = g_object_new (GTK_TYPE_TEXT, "hadjustment", hadj, "vadjustment", vadj, NULL); diff --git a/gtk/gtkviewport.c b/gtk/gtkviewport.c index 3bf37039d2..2a45f89573 100644 --- a/gtk/gtkviewport.c +++ b/gtk/gtkviewport.c @@ -221,7 +221,7 @@ gtk_viewport_new (GtkAdjustment *hadjustment, { GtkWidget *viewport; - viewport = gtk_widget_new (GTK_TYPE_VIEWPORT, + viewport = g_object_new (GTK_TYPE_VIEWPORT, "hadjustment", hadjustment, "vadjustment", vadjustment, NULL); |