summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorrbuj <[email protected]>2021-02-02 11:17:22 +0100
committerLuke from DC <[email protected]>2021-02-23 06:00:46 +0000
commit0f11f68f2a7e107415e6a53992582b656f13be59 (patch)
tree7d1a715b951276ded2900e8a991854c371cdf288 /plugins
parent976158eb7f8ed85db62ad54b1bab9ebce7b0863e (diff)
downloadmate-settings-daemon-0f11f68f2a7e107415e6a53992582b656f13be59.tar.bz2
mate-settings-daemon-0f11f68f2a7e107415e6a53992582b656f13be59.tar.xz
background: Remove conversion warnings
Diffstat (limited to 'plugins')
-rw-r--r--plugins/background/msd-background-manager.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/background/msd-background-manager.c b/plugins/background/msd-background-manager.c
index bc2dd80..0ac1615 100644
--- a/plugins/background/msd-background-manager.c
+++ b/plugins/background/msd-background-manager.c
@@ -66,7 +66,7 @@ struct _MsdBackgroundManager {
guint timeout_id;
GDBusProxy *proxy;
- guint proxy_signal_id;
+ gulong proxy_signal_id;
};
G_DEFINE_TYPE (MsdBackgroundManager, msd_background_manager, G_TYPE_OBJECT)
@@ -255,7 +255,7 @@ on_screen_size_changed (GdkScreen *screen,
GdkWindow *window = gdk_screen_get_root_window (screen);
gint scale = gdk_window_get_scale_factor (window);
gint scr_num = gdk_x11_screen_get_screen_number (screen);
- gchar *old_size = g_list_nth_data (manager->scr_sizes, scr_num);
+ gchar *old_size = g_list_nth_data (manager->scr_sizes, (guint) scr_num);
gchar *new_size = g_strdup_printf ("%dx%d", WidthOfScreen (gdk_x11_screen_get_xscreen (screen)) / scale,
HeightOfScreen (gdk_x11_screen_get_xscreen (screen)) / scale);
if (g_strcmp0 (old_size, new_size) != 0)