summaryrefslogtreecommitdiff
path: root/panels/background/bg-colors-source.c
diff options
context:
space:
mode:
authorGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>2019-05-21 15:50:30 -0300
committerGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>2019-05-30 20:01:12 -0300
commit5afc292c2b68e6b401e97a317ef0351ae747a278 (patch)
tree45a5373f929fc542f8c0a7b3dc5102cbed271fef /panels/background/bg-colors-source.c
parentad740deeea7f6fe6e9fc16088e806dc4c77abb7c (diff)
downloadgnome-control-center-5afc292c2b68e6b401e97a317ef0351ae747a278.tar.gz
background: Make BgSource receive a GtkWidget
Instead of a GtkWindow. We don't really depend on GtkWindow itself, just any widget with access to the scale factor.
Diffstat (limited to 'panels/background/bg-colors-source.c')
-rw-r--r--panels/background/bg-colors-source.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/panels/background/bg-colors-source.c b/panels/background/bg-colors-source.c
index 7c837b809..3512772bb 100644
--- a/panels/background/bg-colors-source.c
+++ b/panels/background/bg-colors-source.c
@@ -249,8 +249,8 @@ bg_colors_source_class_init (BgColorsSourceClass *klass)
}
BgColorsSource *
-bg_colors_source_new (GtkWindow *window)
+bg_colors_source_new (GtkWidget *widget)
{
- return g_object_new (BG_TYPE_COLORS_SOURCE, "window", window, NULL);
+ return g_object_new (BG_TYPE_COLORS_SOURCE, "widget", widget, NULL);
}