[gnome-initial-setup/youre-welcome: 10/10] Only show welcome if language is skipped
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-initial-setup/youre-welcome: 10/10] Only show welcome if language is skipped
- Date: Thu, 6 Aug 2020 13:24:15 +0000 (UTC)
commit e7d916bc83fdb7ecd21c94f1cf9e7cff67c5214f
Author: Matthias Clasen <mclasen redhat com>
Date: Thu Aug 6 08:57:50 2020 -0400
Only show welcome if language is skipped
When we don't skip language, we want it to be the
first page the user sees, since he may not be able
to read anything before selecting the language.
So, skip the welcome page unless language is skipped.
gnome-initial-setup/gnome-initial-setup.c | 7 +++++++
1 file changed, 7 insertions(+)
---
diff --git a/gnome-initial-setup/gnome-initial-setup.c b/gnome-initial-setup/gnome-initial-setup.c
index 7e2a5dc3..cc2b0090 100644
--- a/gnome-initial-setup/gnome-initial-setup.c
+++ b/gnome-initial-setup/gnome-initial-setup.c
@@ -89,6 +89,12 @@ should_skip_page (const gchar *page_id,
{
guint i = 0;
+ /* special case welcome. We only want to show it if language
+ * is skipped
+ */
+ if (strcmp (page_id, "welcome") == 0)
+ return !should_skip_page ("language", skip_pages);
+
/* check through our skip pages list for pages we don't want */
if (skip_pages) {
while (skip_pages[i]) {
@@ -97,6 +103,7 @@ should_skip_page (const gchar *page_id,
i++;
}
}
+
return FALSE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]