--- a/libnemo-private/nemo-action.c +++ b/libnemo-private/nemo-action.c @@ -1322,6 +1322,7 @@ check_gsettings_condition (NemoAction *a g_strfreev (split); return FALSE; } + return 0; } static gboolean --- a/libnemo-private/nemo-desktop-utils.c +++ b/libnemo-private/nemo-desktop-utils.c @@ -82,15 +82,7 @@ nemo_desktop_utils_get_primary_monitor ( #if GTK_CHECK_VERSION (3, 22, 0) ensure_display (); - gint n_mon = gdk_display_get_n_monitors (default_display); - gint i; - - for (i = 0; i < n_mon; i ++) { - GdkMonitor *monitor = gdk_display_get_monitor (default_display, i); - if (gdk_monitor_is_primary (monitor)) { - return i; - } - } + return gdk_display_get_primary_monitor (default_display); #else ensure_screen (); --- a/libnemo-private/nemo-monitor.c +++ b/libnemo-private/nemo-monitor.c @@ -78,6 +78,7 @@ schedule_call_consume_changes (void) call_consume_changes_idle_id = g_idle_add (call_consume_changes_idle_cb, NULL); } + return 0; } static void