3.10.0
This commit is contained in:
parent
9c9296664d
commit
a9541ad547
1
.gitignore
vendored
1
.gitignore
vendored
@ -8,3 +8,4 @@
|
|||||||
/gnome-initial-setup-0.10.tar.xz
|
/gnome-initial-setup-0.10.tar.xz
|
||||||
/gnome-initial-setup-0.11.tar.xz
|
/gnome-initial-setup-0.11.tar.xz
|
||||||
/gnome-initial-setup-0.12.tar.xz
|
/gnome-initial-setup-0.12.tar.xz
|
||||||
|
/gnome-initial-setup-3.10.0.tar.xz
|
||||||
|
@ -1,124 +0,0 @@
|
|||||||
From 74ce9a6005523558c6014e12efe3b03e91aaa187 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Colin Walters <walters@verbum.org>
|
|
||||||
Date: Thu, 22 Aug 2013 15:48:53 -0400
|
|
||||||
Subject: [PATCH] gis-goa-page: Port to new async provider API
|
|
||||||
|
|
||||||
The API changed with https://git.gnome.org/browse/gnome-online-accounts/commit/?id=1a8bfdf90fd24e9bbaeeae15ff9f16e847a6b48e
|
|
||||||
|
|
||||||
Update this page to be async. Ideally we'd have a loading API, but
|
|
||||||
eh.
|
|
||||||
|
|
||||||
https://bugzilla.gnome.org/show_bug.cgi?id=706608
|
|
||||||
---
|
|
||||||
gnome-initial-setup/pages/goa/gis-goa-page.c | 60 ++++++++++++++++++----------
|
|
||||||
1 file changed, 40 insertions(+), 20 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/gnome-initial-setup/pages/goa/gis-goa-page.c b/gnome-initial-setup/pages/goa/gis-goa-page.c
|
|
||||||
index fa83734..df93195 100644
|
|
||||||
--- a/gnome-initial-setup/pages/goa/gis-goa-page.c
|
|
||||||
+++ b/gnome-initial-setup/pages/goa/gis-goa-page.c
|
|
||||||
@@ -47,6 +47,7 @@ G_DEFINE_TYPE (GisGoaPage, gis_goa_page, GIS_TYPE_PAGE);
|
|
||||||
|
|
||||||
struct _GisGoaPagePrivate {
|
|
||||||
GoaClient *goa_client;
|
|
||||||
+ GtkWidget *dialog;
|
|
||||||
gboolean accounts_exist;
|
|
||||||
};
|
|
||||||
|
|
||||||
@@ -54,6 +55,39 @@ struct _GisGoaPagePrivate {
|
|
||||||
#define WID(name) OBJ(GtkWidget*,name)
|
|
||||||
|
|
||||||
static void
|
|
||||||
+on_have_providers (GObject *source,
|
|
||||||
+ GAsyncResult *res,
|
|
||||||
+ gpointer user_data)
|
|
||||||
+{
|
|
||||||
+ GList *providers;
|
|
||||||
+ GList *l;
|
|
||||||
+ GError *error = NULL;
|
|
||||||
+ GisGoaPage *page = GIS_GOA_PAGE (user_data);
|
|
||||||
+ GisGoaPagePrivate *priv = page->priv;
|
|
||||||
+
|
|
||||||
+ if (!goa_provider_get_all_finish (&providers, res, &error))
|
|
||||||
+ goto out;
|
|
||||||
+
|
|
||||||
+ for (l = providers; l != NULL; l = l->next)
|
|
||||||
+ {
|
|
||||||
+ GoaProvider *provider;
|
|
||||||
+
|
|
||||||
+ provider = GOA_PROVIDER (l->data);
|
|
||||||
+ goa_panel_add_account_dialog_add_provider (GOA_PANEL_ADD_ACCOUNT_DIALOG (priv->dialog), provider);
|
|
||||||
+ }
|
|
||||||
+
|
|
||||||
+ g_list_foreach (providers, (GFunc) g_object_unref, NULL);
|
|
||||||
+ g_list_free (providers);
|
|
||||||
+
|
|
||||||
+ out:
|
|
||||||
+ if (error)
|
|
||||||
+ {
|
|
||||||
+ g_printerr ("Failed to list providers: %s\n", error->message);
|
|
||||||
+ g_error_free (error);
|
|
||||||
+ }
|
|
||||||
+}
|
|
||||||
+
|
|
||||||
+static void
|
|
||||||
show_online_account_dialog (GtkButton *button,
|
|
||||||
gpointer user_data)
|
|
||||||
{
|
|
||||||
@@ -62,36 +96,24 @@ show_online_account_dialog (GtkButton *button,
|
|
||||||
GtkWindow *parent;
|
|
||||||
GtkWidget *dialog;
|
|
||||||
gint response;
|
|
||||||
- GList *providers;
|
|
||||||
- GList *l;
|
|
||||||
GoaObject *object;
|
|
||||||
GError *error;
|
|
||||||
|
|
||||||
- providers = NULL;
|
|
||||||
-
|
|
||||||
parent = GTK_WINDOW (gtk_widget_get_toplevel (GTK_WIDGET (page)));
|
|
||||||
|
|
||||||
- dialog = goa_panel_add_account_dialog_new (priv->goa_client);
|
|
||||||
- gtk_window_set_transient_for (GTK_WINDOW (dialog), parent);
|
|
||||||
-
|
|
||||||
- providers = goa_provider_get_all ();
|
|
||||||
- for (l = providers; l != NULL; l = l->next)
|
|
||||||
- {
|
|
||||||
- GoaProvider *provider;
|
|
||||||
+ priv->dialog = goa_panel_add_account_dialog_new (priv->goa_client);
|
|
||||||
+ gtk_window_set_transient_for (GTK_WINDOW (priv->dialog), parent);
|
|
||||||
|
|
||||||
- provider = GOA_PROVIDER (l->data);
|
|
||||||
- goa_panel_add_account_dialog_add_provider (GOA_PANEL_ADD_ACCOUNT_DIALOG (dialog), provider);
|
|
||||||
- }
|
|
||||||
+ goa_provider_get_all (on_have_providers, page);
|
|
||||||
|
|
||||||
- gtk_widget_show_all (dialog);
|
|
||||||
- response = gtk_dialog_run (GTK_DIALOG (dialog));
|
|
||||||
+ gtk_widget_show_all (priv->dialog);
|
|
||||||
+ response = gtk_dialog_run (GTK_DIALOG (priv->dialog));
|
|
||||||
if (response != GTK_RESPONSE_OK)
|
|
||||||
{
|
|
||||||
gtk_widget_destroy (dialog);
|
|
||||||
goto out;
|
|
||||||
}
|
|
||||||
|
|
||||||
- error = NULL;
|
|
||||||
object = goa_panel_add_account_dialog_get_account (GOA_PANEL_ADD_ACCOUNT_DIALOG (dialog), &error);
|
|
||||||
|
|
||||||
if (object == NULL)
|
|
||||||
@@ -113,10 +135,8 @@ show_online_account_dialog (GtkButton *button,
|
|
||||||
}
|
|
||||||
g_error_free (error);
|
|
||||||
}
|
|
||||||
-
|
|
||||||
out:
|
|
||||||
- g_list_foreach (providers, (GFunc) g_object_unref, NULL);
|
|
||||||
- g_list_free (providers);
|
|
||||||
+ return;
|
|
||||||
}
|
|
||||||
|
|
||||||
static void
|
|
||||||
--
|
|
||||||
1.8.3.1
|
|
||||||
|
|
@ -1,22 +1,19 @@
|
|||||||
Name: gnome-initial-setup
|
Name: gnome-initial-setup
|
||||||
Version: 0.12
|
Version: 3.10.0
|
||||||
Release: 7%{?dist}
|
Release: 1%{?dist}
|
||||||
Summary: Bootstrapping your OS
|
Summary: Bootstrapping your OS
|
||||||
|
|
||||||
License: GPLv2+
|
License: GPLv2+
|
||||||
URL: https://live.gnome.org/GnomeOS/Design/Whiteboards/InitialSetup
|
URL: https://live.gnome.org/GnomeOS/Design/Whiteboards/InitialSetup
|
||||||
Source0: http://download.gnome.org/sources/%{name}/0.12/%{name}-%{version}.tar.xz
|
Source0: http://download.gnome.org/sources/%{name}/3.10/%{name}-%{version}.tar.xz
|
||||||
|
|
||||||
# this depends on a yelp patch that hasn't been merged upstream yet
|
# this depends on a yelp patch that hasn't been merged upstream yet
|
||||||
# https://bugzilla.gnome.org/show_bug.cgi?id=687957
|
# https://bugzilla.gnome.org/show_bug.cgi?id=687957
|
||||||
Patch0: yelp-fixes.patch
|
Patch0: yelp-fixes.patch
|
||||||
|
|
||||||
# Backported from upstream for gnome-online-accounts 3.9.90 compatibility
|
%global nm_version 0.9.6.4
|
||||||
Patch1: 0001-gis-goa-page-Port-to-new-async-provider-API.patch
|
%global glib_required_version 2.36.0
|
||||||
|
%global gtk_required_version 3.7.11
|
||||||
%global nm_version 0.9
|
|
||||||
%global glib_required_version 2.29.4
|
|
||||||
%global gtk_required_version 3.1.2
|
|
||||||
|
|
||||||
BuildRequires: krb5-devel
|
BuildRequires: krb5-devel
|
||||||
BuildRequires: desktop-file-utils
|
BuildRequires: desktop-file-utils
|
||||||
@ -69,7 +66,6 @@ you through configuring it. It is integrated with gdm.
|
|||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
%patch0 -p1 -b .yelp-fixes
|
%patch0 -p1 -b .yelp-fixes
|
||||||
%patch1 -p1 -b .goa
|
|
||||||
|
|
||||||
autoreconf -i -f
|
autoreconf -i -f
|
||||||
|
|
||||||
@ -99,7 +95,6 @@ useradd -rM -d /run/gnome-initial-setup/ -s /sbin/nologin %{name} &>/dev/null ||
|
|||||||
%doc COPYING README
|
%doc COPYING README
|
||||||
%{_libexecdir}/gnome-initial-setup
|
%{_libexecdir}/gnome-initial-setup
|
||||||
%{_libexecdir}/gnome-initial-setup-copy-worker
|
%{_libexecdir}/gnome-initial-setup-copy-worker
|
||||||
%{_libexecdir}/gnome-initial-setup-player
|
|
||||||
%{_libexecdir}/gnome-welcome-tour
|
%{_libexecdir}/gnome-welcome-tour
|
||||||
%{_sysconfdir}/xdg/autostart/gnome-welcome-tour.desktop
|
%{_sysconfdir}/xdg/autostart/gnome-welcome-tour.desktop
|
||||||
%{_sysconfdir}/xdg/autostart/gnome-initial-setup-copy-worker.desktop
|
%{_sysconfdir}/xdg/autostart/gnome-initial-setup-copy-worker.desktop
|
||||||
@ -112,6 +107,9 @@ useradd -rM -d /run/gnome-initial-setup/ -s /sbin/nologin %{name} &>/dev/null ||
|
|||||||
%{_datadir}/polkit-1/rules.d/20-gnome-initial-setup.rules
|
%{_datadir}/polkit-1/rules.d/20-gnome-initial-setup.rules
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Sep 25 2013 Kalev Lember <kalevlember@gmail.com> - 3.10.0-1
|
||||||
|
- Update to 3.10.0
|
||||||
|
|
||||||
* Tue Sep 03 2013 Kalev Lember <kalevlember@gmail.com> - 0.12-7
|
* Tue Sep 03 2013 Kalev Lember <kalevlember@gmail.com> - 0.12-7
|
||||||
- Rebuilt for libgnome-desktop soname bump
|
- Rebuilt for libgnome-desktop soname bump
|
||||||
|
|
||||||
|
2
sources
2
sources
@ -1 +1 @@
|
|||||||
c8a3f6249ff3a12833239e4b1437e5d6 gnome-initial-setup-0.12.tar.xz
|
75722a20b6852f4caebc1b5e83fcfe1a gnome-initial-setup-3.10.0.tar.xz
|
||||||
|
@ -1,9 +1,8 @@
|
|||||||
diff -up gnome-initial-setup-0.9/data/gnome-welcome-tour.yelp-fixes gnome-initial-setup-0.9/data/gnome-welcome-tour
|
--- gnome-initial-setup-3.10.0/data/gnome-welcome-tour.yelp-fixes 2013-08-30 00:29:26.000000000 +0200
|
||||||
--- gnome-initial-setup-0.9/data/gnome-welcome-tour.yelp-fixes 2013-04-16 22:52:59.180353913 -0400
|
+++ gnome-initial-setup-3.10.0/data/gnome-welcome-tour 2013-09-25 15:41:22.897967924 +0200
|
||||||
+++ gnome-initial-setup-0.9/data/gnome-welcome-tour 2013-04-16 22:53:36.737354477 -0400
|
@@ -18,4 +18,4 @@
|
||||||
@@ -31,4 +31,4 @@ for name in $locale $lang 'C'; do
|
EOF
|
||||||
done
|
fi
|
||||||
|
|
||||||
/usr/libexec/gnome-initial-setup-player $intro_path &
|
|
||||||
-yelp help:gnome-help/getting-started
|
-yelp help:gnome-help/getting-started
|
||||||
+yelp --dont-steal-focus help:gnome-help/getting-started
|
+yelp --dont-steal-focus help:gnome-help/getting-started
|
||||||
|
Loading…
Reference in New Issue
Block a user