[gthumb] call gth_task_dialog when setting the authorization dialog



commit 9b722df6ef109f54d58a99c4250f3ea421b3cf45
Author: Paolo Bacchilega <paobac src gnome org>
Date:   Thu Dec 20 10:11:36 2012 +0100

    call gth_task_dialog when setting the authorization  dialog

 extensions/facebook/facebook-service.c    |    2 --
 extensions/oauth/oauth-service.c          |    2 --
 extensions/oauth/web-service.c            |    1 +
 extensions/picasaweb/picasa-web-service.c |    2 --
 4 files changed, 1 insertions(+), 6 deletions(-)
---
diff --git a/extensions/facebook/facebook-service.c b/extensions/facebook/facebook-service.c
index 2d30e21..b949eaf 100644
--- a/extensions/facebook/facebook-service.c
+++ b/extensions/facebook/facebook-service.c
@@ -277,8 +277,6 @@ facebook_service_ask_authorization (WebService *base)
 	FacebookService *self = FACEBOOK_SERVICE (base);
 	GtkWidget       *dialog;
 
-	gth_task_dialog (GTH_TASK (self), TRUE, NULL);
-
 	dialog = oauth_ask_authorization_dialog_new (facebook_utils_get_authorization_url (WEB_AUTHORIZATION_WRITE));
 	gtk_window_set_default_size (GTK_WINDOW (dialog), 800, 600);
 	_web_service_set_auth_dialog (WEB_SERVICE (self), GTK_DIALOG (dialog));
diff --git a/extensions/oauth/oauth-service.c b/extensions/oauth/oauth-service.c
index 1c4a58e..0a47937 100644
--- a/extensions/oauth/oauth-service.c
+++ b/extensions/oauth/oauth-service.c
@@ -337,8 +337,6 @@ get_request_token_ready_cb (GObject      *source_object,
 		return;
 	}
 
-	gth_task_dialog (GTH_TASK (self), TRUE, NULL);
-
 	url = self->priv->consumer->get_authorization_url (self);
 	dialog = oauth_ask_authorization_dialog_new (url);
 	_gtk_window_resize_to_fit_screen_height (dialog, 800);
diff --git a/extensions/oauth/web-service.c b/extensions/oauth/web-service.c
index 6ccb383..b7cfb01 100644
--- a/extensions/oauth/web-service.c
+++ b/extensions/oauth/web-service.c
@@ -938,6 +938,7 @@ _web_service_set_auth_dialog (WebService *self,
 {
 	self->priv->auth_dialog = GTK_WIDGET (dialog);
 	g_object_add_weak_pointer (G_OBJECT (dialog), (gpointer *) &self->priv->auth_dialog);
+	gth_task_dialog (GTH_TASK (self), TRUE, self->priv->auth_dialog);
 
 	gtk_window_set_modal (GTK_WINDOW (dialog), TRUE);
 	if (gtk_widget_get_visible (self->priv->dialog))
diff --git a/extensions/picasaweb/picasa-web-service.c b/extensions/picasaweb/picasa-web-service.c
index dfa59d1..5524bcb 100644
--- a/extensions/picasaweb/picasa-web-service.c
+++ b/extensions/picasaweb/picasa-web-service.c
@@ -329,8 +329,6 @@ picasa_web_service_ask_authorization (WebService *base)
 	_g_strset (&self->priv->refresh_token, NULL);
 	_g_strset (&self->priv->access_token, NULL);
 
-	gth_task_dialog (GTH_TASK (self), TRUE, NULL);
-
 	dialog = oauth_ask_authorization_dialog_new (picasa_web_service_get_authorization_url (self));
 	gtk_window_set_default_size (GTK_WINDOW (dialog), 680, 580);
 	_web_service_set_auth_dialog (WEB_SERVICE (self), GTK_DIALOG (dialog));



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]