[gnome-software/wip/temp/ubuntu-xenial-rebased-corrected: 250/331] Add reenable_widgets ()
- From: William Hua <williamhua src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/wip/temp/ubuntu-xenial-rebased-corrected: 250/331] Add reenable_widgets ()
- Date: Wed, 4 May 2016 14:19:32 +0000 (UTC)
commit e7fc55c808fbc4d2b2e9a7ee2bee19915a8822ba
Author: William Hua <william hua canonical com>
Date: Sun Apr 17 10:31:03 2016 -0400
Add reenable_widgets ()
src/plugins/gs-ubuntuone-dialog.c | 18 ++++++++++++------
1 files changed, 12 insertions(+), 6 deletions(-)
---
diff --git a/src/plugins/gs-ubuntuone-dialog.c b/src/plugins/gs-ubuntuone-dialog.c
index 7adfb91..4f1a28d 100644
--- a/src/plugins/gs-ubuntuone-dialog.c
+++ b/src/plugins/gs-ubuntuone-dialog.c
@@ -198,13 +198,8 @@ show_status (GsUbuntuoneDialog *self,
}
static void
-receive_login_response_cb (GsUbuntuoneDialog *self,
- guint status,
- GVariant *response,
- gpointer user_data)
+reenable_widgets (GsUbuntuoneDialog *self)
{
- const gchar *code;
-
gtk_label_set_text (GTK_LABEL (self->status_label), NULL);
gtk_stack_set_visible_child_name (GTK_STACK (self->status_stack), "status-image");
gtk_widget_set_visible (self->status_stack, FALSE);
@@ -218,6 +213,17 @@ receive_login_response_cb (GsUbuntuoneDialog *self,
gtk_widget_set_sensitive (self->password_entry, TRUE);
gtk_widget_set_sensitive (self->remember_check, TRUE);
gtk_widget_set_sensitive (self->passcode_entry, TRUE);
+}
+
+static void
+receive_login_response_cb (GsUbuntuoneDialog *self,
+ guint status,
+ GVariant *response,
+ gpointer user_data)
+{
+ const gchar *code;
+
+ reenable_widgets (self);
switch (status) {
case SOUP_STATUS_OK:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]