Accepting request 760971 from GNOME:Next

New stable release

OBS-URL: https://build.opensuse.org/request/show/760971
OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/gnome-initial-setup?expand=0&rev=73
This commit is contained in:
Bjørn Lie 2020-01-06 18:03:40 +00:00 committed by Git OBS Bridge
parent dc82b8cbd1
commit 8e368044cd
5 changed files with 151 additions and 156 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:e71f10ef6b631cd92ffde774e4130b32b2494b4df5ef288375d8b1957eeabfa1
size 1362240

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:33f9ceb2d65800644c6d6430bbb1d0f4387a062684014cba836d9fbc593d88b5
size 1364488

View File

@ -1,15 +1,15 @@
diff -Nura gnome-initial-setup-3.26.0/gnome-initial-setup/gis-driver.c gnome-initial-setup-3.26.0_new/gnome-initial-setup/gis-driver.c
--- gnome-initial-setup-3.26.0/gnome-initial-setup/gis-driver.c 2017-06-14 21:39:03.000000000 +0800
+++ gnome-initial-setup-3.26.0_new/gnome-initial-setup/gis-driver.c 2019-02-27 18:51:00.329103410 +0800
@@ -27,6 +27,7 @@
#include <locale.h>
diff -Nura gnome-initial-setup-3.34.1/gnome-initial-setup/gis-driver.c gnome-initial-setup-3.34.1_new/gnome-initial-setup/gis-driver.c
--- gnome-initial-setup-3.34.1/gnome-initial-setup/gis-driver.c 2019-10-06 05:03:38.000000000 +0800
+++ gnome-initial-setup-3.34.1_new/gnome-initial-setup/gis-driver.c 2019-11-26 16:05:58.390308663 +0800
@@ -30,6 +30,7 @@
#include "cc-common-language.h"
#include "gis-assistant.h"
+#include "language-setting.h"
#define GIS_TYPE_DRIVER_MODE (gis_driver_mode_get_type ())
@@ -83,6 +84,32 @@
@@ -92,6 +93,32 @@
G_DEFINE_TYPE_WITH_PRIVATE(GisDriver, gis_driver, GTK_TYPE_APPLICATION)
@ -40,9 +40,9 @@ diff -Nura gnome-initial-setup-3.26.0/gnome-initial-setup/gis-driver.c gnome-ini
+}
+
static void
gis_driver_finalize (GObject *object)
gis_driver_dispose (GObject *object)
{
@@ -319,7 +346,16 @@
@@ -387,7 +414,16 @@
G_APPLICATION_CLASS (gis_driver_parent_class)->activate (app);
@ -60,7 +60,7 @@ diff -Nura gnome-initial-setup-3.26.0/gnome-initial-setup/gis-driver.c gnome-ini
}
static gboolean
@@ -436,6 +472,7 @@
@@ -555,6 +591,7 @@
"icon-name", "preferences-system",
"deletable", FALSE,
NULL);
@ -68,18 +68,18 @@ diff -Nura gnome-initial-setup-3.26.0/gnome-initial-setup/gis-driver.c gnome-ini
g_signal_connect (priv->main_window,
"realize",
diff -Nura gnome-initial-setup-3.26.0/gnome-initial-setup/gnome-initial-setup.c gnome-initial-setup-3.26.0_new/gnome-initial-setup/gnome-initial-setup.c
--- gnome-initial-setup-3.26.0/gnome-initial-setup/gnome-initial-setup.c 2017-09-05 00:35:30.000000000 +0800
+++ gnome-initial-setup-3.26.0_new/gnome-initial-setup/gnome-initial-setup.c 2019-02-27 16:05:26.596328724 +0800
@@ -48,6 +48,7 @@
diff -Nura gnome-initial-setup-3.34.1/gnome-initial-setup/gnome-initial-setup.c gnome-initial-setup-3.34.1_new/gnome-initial-setup/gnome-initial-setup.c
--- gnome-initial-setup-3.34.1/gnome-initial-setup/gnome-initial-setup.c 2019-10-06 05:03:38.000000000 +0800
+++ gnome-initial-setup-3.34.1_new/gnome-initial-setup/gnome-initial-setup.c 2019-11-26 19:19:43.238641813 +0800
@@ -44,6 +44,7 @@
#include "pages/account/gis-account-pages.h"
#include "pages/password/gis-password-page.h"
#include "pages/summary/gis-summary-page.h"
+#include "language-setting.h"
#define VENDOR_PAGES_GROUP "pages"
#define VENDOR_PAGES_SKIP_KEY "skip"
@@ -82,6 +83,16 @@
#define VENDOR_SKIP_KEY "skip"
@@ -84,6 +85,16 @@
#undef PAGE
@ -94,28 +94,47 @@ diff -Nura gnome-initial-setup-3.26.0/gnome-initial-setup/gnome-initial-setup.c
+ };
+
static gboolean
should_skip_page (GisDriver *driver,
const gchar *page_id,
@@ -100,42 +111,6 @@
should_skip_page (const gchar *page_id,
gchar **skip_pages)
@@ -101,73 +112,6 @@
return FALSE;
}
-static gchar **
-pages_to_skip_from_file (void)
-strv_append (gchar **a,
- gchar **b)
-{
- guint n = g_strv_length (a);
- guint m = g_strv_length (b);
-
- a = g_renew (gchar *, a, n + m + 1);
- for (guint i = 0; i < m; i++)
- a[n + i] = g_strdup (b[i]);
- a[n + m] = NULL;
-
- return a;
-}
-
-static gchar **
-pages_to_skip_from_file (gboolean is_new_user)
-{
- GKeyFile *skip_pages_file;
- gchar **skip_pages = NULL;
- gchar **additional_skip_pages = NULL;
- GError *error = NULL;
-
- /* VENDOR_CONF_FILE points to a keyfile containing vendor customization
- * options. This code will look for options under the "pages" group, and
- * supports the following keys:
- * - skip (optional): list of pages to be skipped.
- * - skip (optional): list of pages to be skipped always
- * - new_user_only (optional): list of pages to be skipped in existing user mode
- * - existing_user_only (optional): list of pages to be skipped in new user mode
- *
- * This is how this file would look on a vendor image:
- * This is how this file might look on a vendor image:
- *
- * [pages]
- * skip=language
- * skip=timezone
- * existing_user_only=language;keyboard
- */
- skip_pages_file = g_key_file_new ();
- if (!g_key_file_load_from_file (skip_pages_file, VENDOR_CONF_FILE,
@ -127,8 +146,20 @@ diff -Nura gnome-initial-setup-3.26.0/gnome-initial-setup/gnome-initial-setup.c
- goto out;
- }
-
- skip_pages = g_key_file_get_string_list (skip_pages_file, VENDOR_PAGES_GROUP,
- VENDOR_PAGES_SKIP_KEY, NULL, NULL);
- skip_pages = g_key_file_get_string_list (skip_pages_file,
- VENDOR_PAGES_GROUP,
- VENDOR_SKIP_KEY, NULL, NULL);
- additional_skip_pages = g_key_file_get_string_list (skip_pages_file,
- VENDOR_PAGES_GROUP,
- is_new_user ? VENDOR_EXISTING_USER_ONLY_KEY : VENDOR_NEW_USER_ONLY_KEY,
- NULL, NULL);
-
- if (!skip_pages && additional_skip_pages) {
- skip_pages = additional_skip_pages;
- } else if (skip_pages && additional_skip_pages) {
- skip_pages = strv_append (skip_pages, additional_skip_pages);
- g_strfreev (additional_skip_pages);
- }
-
- out:
- g_key_file_free (skip_pages_file);
@ -139,56 +170,41 @@ diff -Nura gnome-initial-setup-3.26.0/gnome-initial-setup/gnome-initial-setup.c
static void
destroy_pages_after (GisAssistant *assistant,
GisPage *page)
@@ -161,14 +136,11 @@
PageData *page_data;
@@ -194,7 +138,6 @@
GisPage *page;
GisAssistant *assistant;
GisPage *current_page;
- gchar **skip_pages;
gboolean is_new_user;
gboolean is_new_user, skipped;
assistant = gis_driver_get_assistant (driver);
current_page = gis_assistant_get_current_page (assistant);
@@ -215,13 +158,12 @@
}
- skip_pages = pages_to_skip_from_file ();
-
page_data = page_table;
is_new_user = (gis_driver_get_mode (driver) == GIS_DRIVER_MODE_NEW_USER);
- skip_pages = pages_to_skip_from_file (is_new_user);
if (current_page != NULL) {
@@ -186,13 +158,11 @@
if (page_data->new_user_only && !is_new_user)
continue;
for (; page_data->page_id != NULL; ++page_data) {
skipped = FALSE;
- if (should_skip_page (driver, page_data->page_id, skip_pages))
+ if (should_skip_page (driver, page_data->page_id, SUSE_skip_pages))
continue;
if ((page_data->new_user_only && !is_new_user) ||
- (should_skip_page (page_data->page_id, skip_pages)))
+ (should_skip_page (page_data->page_id, SUSE_skip_pages)))
skipped = TRUE;
page_data->prepare_page_func (driver);
page = page_data->prepare_page_func (driver);
@@ -233,8 +175,6 @@
else
gis_driver_add_page (driver, page);
}
-
- g_strfreev (skip_pages);
}
static GisDriverMode
@@ -208,7 +178,7 @@
main (int argc, char *argv[])
{
GisDriver *driver;
- int status;
+ int status = 0;
GOptionContext *context;
GisDriverMode mode;
@@ -254,6 +224,7 @@
driver = gis_driver_new (mode);
g_signal_connect (driver, "rebuild-pages", G_CALLBACK (rebuild_pages_cb), NULL);
+
status = g_application_run (G_APPLICATION (driver), argc, argv);
g_object_unref (driver);
diff -Nura gnome-initial-setup-3.26.0/gnome-initial-setup/gnome-initial-setup.h gnome-initial-setup-3.26.0_new/gnome-initial-setup/gnome-initial-setup.h
--- gnome-initial-setup-3.26.0/gnome-initial-setup/gnome-initial-setup.h 2017-06-14 21:39:03.000000000 +0800
+++ gnome-initial-setup-3.26.0_new/gnome-initial-setup/gnome-initial-setup.h 2019-02-27 18:35:26.507047546 +0800
diff -Nura gnome-initial-setup-3.34.1/gnome-initial-setup/gnome-initial-setup.h gnome-initial-setup-3.34.1_new/gnome-initial-setup/gnome-initial-setup.h
--- gnome-initial-setup-3.34.1/gnome-initial-setup/gnome-initial-setup.h 2019-10-06 05:03:38.000000000 +0800
+++ gnome-initial-setup-3.34.1_new/gnome-initial-setup/gnome-initial-setup.h 2019-11-25 19:53:10.482353002 +0800
@@ -36,6 +36,7 @@
#include "gis-keyring.h"
@ -197,9 +213,9 @@ diff -Nura gnome-initial-setup-3.26.0/gnome-initial-setup/gnome-initial-setup.h
#endif /* __GNOME_INITIAL_SETUP_H__ */
diff -Nura gnome-initial-setup-3.26.0/gnome-initial-setup/language-setting.c gnome-initial-setup-3.26.0_new/gnome-initial-setup/language-setting.c
--- gnome-initial-setup-3.26.0/gnome-initial-setup/language-setting.c 1970-01-01 08:00:00.000000000 +0800
+++ gnome-initial-setup-3.26.0_new/gnome-initial-setup/language-setting.c 2019-02-27 16:05:26.596328724 +0800
diff -Nura gnome-initial-setup-3.34.1/gnome-initial-setup/language-setting.c gnome-initial-setup-3.34.1_new/gnome-initial-setup/language-setting.c
--- gnome-initial-setup-3.34.1/gnome-initial-setup/language-setting.c 1970-01-01 08:00:00.000000000 +0800
+++ gnome-initial-setup-3.34.1_new/gnome-initial-setup/language-setting.c 2019-11-25 19:53:10.482353002 +0800
@@ -0,0 +1,289 @@
+#include "config.h"
+
@ -490,9 +506,9 @@ diff -Nura gnome-initial-setup-3.26.0/gnome-initial-setup/language-setting.c gno
+
+ return ht;
+}
diff -Nura gnome-initial-setup-3.26.0/gnome-initial-setup/language-setting.h gnome-initial-setup-3.26.0_new/gnome-initial-setup/language-setting.h
--- gnome-initial-setup-3.26.0/gnome-initial-setup/language-setting.h 1970-01-01 08:00:00.000000000 +0800
+++ gnome-initial-setup-3.26.0_new/gnome-initial-setup/language-setting.h 2019-02-27 16:05:26.596328724 +0800
diff -Nura gnome-initial-setup-3.34.1/gnome-initial-setup/language-setting.h gnome-initial-setup-3.34.1_new/gnome-initial-setup/language-setting.h
--- gnome-initial-setup-3.34.1/gnome-initial-setup/language-setting.h 1970-01-01 08:00:00.000000000 +0800
+++ gnome-initial-setup-3.34.1_new/gnome-initial-setup/language-setting.h 2019-11-25 19:53:10.482353002 +0800
@@ -0,0 +1,13 @@
+#ifndef __CC_COMMON_LANGUAGE_H__
+#define __CC_COMMON_LANGUAGE_H__
@ -507,10 +523,10 @@ diff -Nura gnome-initial-setup-3.26.0/gnome-initial-setup/language-setting.h gno
+G_END_DECLS
+
+#endif
diff -Nura gnome-initial-setup-3.26.0/gnome-initial-setup/pages/keyboard/cc-input-chooser.c gnome-initial-setup-3.26.0_new/gnome-initial-setup/pages/keyboard/cc-input-chooser.c
--- gnome-initial-setup-3.26.0/gnome-initial-setup/pages/keyboard/cc-input-chooser.c 2016-10-22 15:09:29.000000000 +0800
+++ gnome-initial-setup-3.26.0_new/gnome-initial-setup/pages/keyboard/cc-input-chooser.c 2019-02-27 16:05:26.596328724 +0800
@@ -59,6 +59,7 @@
diff -Nura gnome-initial-setup-3.34.1/gnome-initial-setup/pages/keyboard/cc-input-chooser.c gnome-initial-setup-3.34.1_new/gnome-initial-setup/pages/keyboard/cc-input-chooser.c
--- gnome-initial-setup-3.34.1/gnome-initial-setup/pages/keyboard/cc-input-chooser.c 2019-10-06 05:03:38.000000000 +0800
+++ gnome-initial-setup-3.34.1_new/gnome-initial-setup/pages/keyboard/cc-input-chooser.c 2019-11-25 19:53:10.483353011 +0800
@@ -58,6 +58,7 @@
gboolean showing_extra;
gchar *locale;
@ -518,7 +534,7 @@ diff -Nura gnome-initial-setup-3.26.0/gnome-initial-setup/pages/keyboard/cc-inpu
gchar *id;
gchar *type;
GnomeXkbInfo *xkb_info;
@@ -272,8 +273,14 @@
@@ -271,8 +272,14 @@
if (priv->id == NULL || priv->type == NULL)
should_be_visible = FALSE;
@ -533,7 +549,7 @@ diff -Nura gnome-initial-setup-3.26.0/gnome-initial-setup/pages/keyboard/cc-inpu
gtk_widget_set_opacity (widget->checkmark, should_be_visible ? 1.0 : 0.0);
if (widget->is_extra && should_be_visible)
@@ -452,6 +459,14 @@
@@ -451,6 +458,14 @@
widget = get_input_widget (child);
@ -548,7 +564,7 @@ diff -Nura gnome-initial-setup-3.26.0/gnome-initial-setup/pages/keyboard/cc-inpu
if (!priv->showing_extra && widget->is_extra)
return FALSE;
@@ -468,6 +483,9 @@
@@ -467,6 +482,9 @@
GtkListBoxRow *b,
gpointer data)
{
@ -558,7 +574,7 @@ diff -Nura gnome-initial-setup-3.26.0/gnome-initial-setup/pages/keyboard/cc-inpu
InputWidget *la, *lb;
la = get_input_widget (gtk_bin_get_child (GTK_BIN (a)));
@@ -479,6 +497,18 @@
@@ -478,6 +496,18 @@
if (lb == NULL)
return -1;
@ -577,7 +593,7 @@ diff -Nura gnome-initial-setup-3.26.0/gnome-initial-setup/pages/keyboard/cc-inpu
if (la->is_extra && !lb->is_extra)
return 1;
@@ -751,9 +781,13 @@
@@ -752,9 +782,13 @@
gtk_list_box_set_selection_mode (GTK_LIST_BOX (priv->input_list),
GTK_SELECTION_NONE);
@ -593,18 +609,18 @@ diff -Nura gnome-initial-setup-3.26.0/gnome-initial-setup/pages/keyboard/cc-inpu
get_locale_infos (chooser);
#ifdef HAVE_IBUS
diff -Nura gnome-initial-setup-3.26.0/gnome-initial-setup/pages/keyboard/gis-keyboard-page.c gnome-initial-setup-3.26.0_new/gnome-initial-setup/pages/keyboard/gis-keyboard-page.c
--- gnome-initial-setup-3.26.0/gnome-initial-setup/pages/keyboard/gis-keyboard-page.c 2017-06-14 21:39:03.000000000 +0800
+++ gnome-initial-setup-3.26.0_new/gnome-initial-setup/pages/keyboard/gis-keyboard-page.c 2019-02-27 16:05:26.596328724 +0800
@@ -33,6 +33,7 @@
diff -Nura gnome-initial-setup-3.34.1/gnome-initial-setup/pages/keyboard/gis-keyboard-page.c gnome-initial-setup-3.34.1_new/gnome-initial-setup/pages/keyboard/gis-keyboard-page.c
--- gnome-initial-setup-3.34.1/gnome-initial-setup/pages/keyboard/gis-keyboard-page.c 2019-10-06 05:03:38.000000000 +0800
+++ gnome-initial-setup-3.34.1_new/gnome-initial-setup/pages/keyboard/gis-keyboard-page.c 2019-11-25 19:53:10.483353011 +0800
@@ -36,6 +36,7 @@
#include "gis-keyboard-page.h"
#include "keyboard-resources.h"
#include "cc-input-chooser.h"
+#include "cc-common-language.h"
#define GNOME_DESKTOP_INPUT_SOURCES_DIR "org.gnome.desktop.input-sources"
#define KEY_CURRENT_INPUT_SOURCE "current"
@@ -45,6 +46,7 @@
#include "cc-common-language.h"
@@ -52,6 +53,7 @@
GCancellable *cancellable;
GPermission *permission;
GSettings *input_settings;
@ -612,7 +628,7 @@ diff -Nura gnome-initial-setup-3.26.0/gnome-initial-setup/pages/keyboard/gis-key
GSList *system_sources;
};
@@ -318,6 +320,29 @@
@@ -437,6 +439,29 @@
update_page_complete (self);
}
@ -642,7 +658,7 @@ diff -Nura gnome-initial-setup-3.26.0/gnome-initial-setup/pages/keyboard/gis-key
static void
gis_keyboard_page_constructed (GObject *object)
{
@@ -337,6 +362,7 @@
@@ -456,6 +481,7 @@
g_settings_delay (priv->input_settings);
priv->cancellable = g_cancellable_new ();
@ -650,7 +666,7 @@ diff -Nura gnome-initial-setup-3.26.0/gnome-initial-setup/pages/keyboard/gis-key
g_dbus_proxy_new_for_bus (G_BUS_TYPE_SYSTEM,
G_DBUS_PROXY_FLAGS_GET_INVALIDATED_PROPERTIES,
@@ -354,7 +380,10 @@
@@ -473,7 +499,10 @@
update_page_complete (self);
@ -662,9 +678,9 @@ diff -Nura gnome-initial-setup-3.26.0/gnome-initial-setup/pages/keyboard/gis-key
}
static void
diff -Nura gnome-initial-setup-3.26.0/gnome-initial-setup/pages/language/gis-language-page.c gnome-initial-setup-3.26.0_new/gnome-initial-setup/pages/language/gis-language-page.c
--- gnome-initial-setup-3.26.0/gnome-initial-setup/pages/language/gis-language-page.c 2017-06-14 21:39:03.000000000 +0800
+++ gnome-initial-setup-3.26.0_new/gnome-initial-setup/pages/language/gis-language-page.c 2019-02-27 18:41:40.070361981 +0800
diff -Nura gnome-initial-setup-3.34.1/gnome-initial-setup/pages/language/gis-language-page.c gnome-initial-setup-3.34.1_new/gnome-initial-setup/pages/language/gis-language-page.c
--- gnome-initial-setup-3.34.1/gnome-initial-setup/pages/language/gis-language-page.c 2019-10-06 05:03:38.000000000 +0800
+++ gnome-initial-setup-3.34.1_new/gnome-initial-setup/pages/language/gis-language-page.c 2019-11-27 11:11:18.491358283 +0800
@@ -28,17 +28,33 @@
#define GNOME_SYSTEM_LOCALE_DIR "org.gnome.system.locale"
@ -707,7 +723,7 @@ diff -Nura gnome-initial-setup-3.26.0/gnome-initial-setup/pages/language/gis-lan
GCancellable *cancellable;
};
@@ -103,62 +120,16 @@
@@ -103,11 +120,17 @@
GParamSpec *pspec,
gpointer user_data)
{
@ -718,64 +734,16 @@ diff -Nura gnome-initial-setup-3.26.0/gnome-initial-setup/pages/language/gis-lan
act_user_set_language (ACT_USER (object), new_locale_id);
-
g_free (new_locale_id);
-}
-static void
-language_changed (CcLanguageChooser *chooser,
- GParamSpec *pspec,
- GisLanguagePage *page)
-{
- GisLanguagePagePrivate *priv = gis_language_page_get_instance_private (page);
- GisDriver *driver;
- GSettings *region_settings;
- ActUser *user;
-
- priv->new_locale_id = cc_language_chooser_get_language (chooser);
- driver = GIS_PAGE (page)->driver;
-
- setlocale (LC_MESSAGES, priv->new_locale_id);
- gtk_widget_set_default_direction (gtk_get_locale_direction ());
-
- if (gis_driver_get_mode (driver) == GIS_DRIVER_MODE_NEW_USER) {
- if (g_permission_get_allowed (priv->permission)) {
- set_localed_locale (page);
- }
- else if (g_permission_get_can_acquire (priv->permission)) {
- g_permission_acquire_async (priv->permission,
- NULL,
- change_locale_permission_acquired,
- page);
- }
+ if (!gis_cjk_region) {
+
+ if (!gis_cjk_region)
+ {
+ gis_ensure_stamp_files ();
+ g_application_quit (G_APPLICATION (GIS_PAGE (user_data)->driver));
}
-
- /* Ensure we won't override the selected language for format strings */
- region_settings = g_settings_new (GNOME_SYSTEM_LOCALE_DIR);
- g_settings_reset (region_settings, REGION_KEY);
- g_object_unref (region_settings);
-
- user = act_user_manager_get_user (act_user_manager_get_default (),
- g_get_user_name ());
- if (act_user_is_loaded (user))
- act_user_set_language (user, priv->new_locale_id);
- else
- g_signal_connect (user,
- "notify::is-loaded",
- G_CALLBACK (user_loaded),
- g_strdup (priv->new_locale_id));
-
- gis_driver_set_user_language (driver, priv->new_locale_id);
-
- gis_welcome_widget_show_locale (GIS_WELCOME_WIDGET (priv->welcome_widget),
- priv->new_locale_id);
-
- gis_driver_locale_changed (driver);
+ }
}
static void
@@ -183,67 +154,162 @@
@@ -179,85 +202,161 @@
priv->localed = proxy;
}
@ -862,6 +830,20 @@ diff -Nura gnome-initial-setup-3.26.0/gnome-initial-setup/pages/language/gis-lan
- GisLanguagePagePrivate *priv = gis_language_page_get_instance_private (page);
- char *buffer;
- char *id;
- gsize i;
-
- static const struct {
- const char *id;
- const char *logo;
- } id_to_logo[] = {
- { "debian", "emblem-debian" },
- { "fedora", "fedora-logo-icon" },
- { "ubuntu", "ubuntu-logo-icon" },
- { "openSUSE Tumbleweed", "opensuse-logo-icon" },
- { "openSUSE Leap", "opensuse-logo-icon" },
- { "SLED", "suse-logo-icon" },
- { "SLES", "suse-logo-icon" },
- };
+ g_autoptr (GDBusConnection) bus = NULL;
+ g_autoptr (GError) error = NULL;
+ GDBusProxy *proxy;
@ -902,7 +884,7 @@ diff -Nura gnome-initial-setup-3.26.0/gnome-initial-setup/pages/language/gis-lan
}
+}
- if (g_strcmp0 (id, "fedora") == 0)
- for (i = 0; i < G_N_ELEMENTS (id_to_logo); i++)
+static gboolean
+get_system_language (GisPage *page)
+{
@ -926,7 +908,11 @@ diff -Nura gnome-initial-setup-3.26.0/gnome-initial-setup/pages/language/gis-lan
+ get_language_from_config_file (self);
+ if (self->language != NULL)
{
- g_object_set (priv->logo, "icon-name", "fedora-logo-icon", NULL);
- if (g_strcmp0 (id, id_to_logo[i].id) == 0)
- {
- g_object_set (priv->logo, "icon-name", id_to_logo[i].logo, NULL);
- break;
- }
+ language_acquire = TRUE;
+ priv-> system_language = g_strdup(self->language);
+ priv->new_locale_id = g_strdup(self->language);
@ -972,24 +958,21 @@ diff -Nura gnome-initial-setup-3.26.0/gnome-initial-setup/pages/language/gis-lan
+ "notify::is-loaded",
+ G_CALLBACK (user_loaded),
+ page);
+
+ gis_driver_set_user_language (driver, priv->new_locale_id);
+ gis_driver_set_user_language (driver, priv->new_locale_id, FALSE);
}
static void
@@ -257,10 +323,6 @@
@@ -271,8 +370,6 @@
G_OBJECT_CLASS (gis_language_page_parent_class)->constructed (object);
- update_distro_logo (page);
-
- g_signal_connect (priv->language_chooser, "notify::language",
- G_CALLBACK (language_changed), page);
g_signal_connect (priv->language_chooser, "notify::language",
G_CALLBACK (language_changed), page);
g_signal_connect (priv->language_chooser, "confirm",
G_CALLBACK (language_confirmed), page);
@@ -283,6 +345,12 @@
}
@@ -297,6 +394,12 @@
}
gis_page_set_complete (GIS_PAGE (page), TRUE);
+

View File

@ -1,3 +1,15 @@
-------------------------------------------------------------------
Sun Jan 5 14:19:39 UTC 2020 - Bjørn Lie <bjorn.lie@gmail.com>
- Update to version 3.34.3:
+ Updated translations.
-------------------------------------------------------------------
Tue Nov 26 06:55:54 UTC 2019 - Cliff Zhao <qzhao@suse.com>
- Update gnome-initial-setup-smarter.patch: Rebase to
gnome-initial-setup-3.34.1 for SLE-15-SP2 build(bnc#1156952).
-------------------------------------------------------------------
Thu Oct 24 09:47:45 UTC 2019 - Cliff Zhao <qzhao@suse.com>

View File

@ -17,7 +17,7 @@
Name: gnome-initial-setup
Version: 3.34.1
Version: 3.34.3
Release: 0
Summary: GNOME Initial Setup Assistant
License: GPL-2.0-or-later