summaryrefslogtreecommitdiff
path: root/gtk/gtkplacesview.c
diff options
context:
space:
mode:
authorTimm Bäder <mail@baedert.org>2019-10-19 11:40:36 +0200
committerTimm Bäder <mail@baedert.org>2019-10-22 09:37:08 +0200
commit15af87345dd3b6163c91a183078fc8e84bd02e36 (patch)
tree39fd5eba11570088104428729bd5a3906f94cdc5 /gtk/gtkplacesview.c
parent640db05b182c94725508949c2d3d7875b2c59239 (diff)
downloadgtk+-15af87345dd3b6163c91a183078fc8e84bd02e36.tar.gz
placesview: Use proper setters for properties
Diffstat (limited to 'gtk/gtkplacesview.c')
-rw-r--r--gtk/gtkplacesview.c14
1 files changed, 4 insertions, 10 deletions
diff --git a/gtk/gtkplacesview.c b/gtk/gtkplacesview.c
index f91c7e2d8c..e23a628b3a 100644
--- a/gtk/gtkplacesview.c
+++ b/gtk/gtkplacesview.c
@@ -2069,15 +2069,11 @@ listbox_header_func (GtkListBoxRow *row,
GtkWidget *header_name;
GtkWidget *network_header_spinner;
- g_object_set (label,
- "margin-end", 6,
- NULL);
+ gtk_widget_set_margin_end (label, 6);
header_name = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
network_header_spinner = gtk_spinner_new ();
- g_object_set (network_header_spinner,
- "margin-end", 12,
- NULL);
+ gtk_widget_set_margin_end (network_header_spinner, 12);
g_object_bind_property (GTK_PLACES_VIEW (user_data),
"fetching-networks",
network_header_spinner,
@@ -2090,10 +2086,8 @@ listbox_header_func (GtkListBoxRow *row,
}
else
{
- g_object_set (label,
- "hexpand", TRUE,
- "margin-end", 12,
- NULL);
+ gtk_widget_set_hexpand (label, TRUE);
+ gtk_widget_set_margin_end (label, 12);
gtk_container_add (GTK_CONTAINER (header), label);
}