[gthumb] oauth dialog: no need to disconnect from the view
- From: Paolo Bacchilega <paobac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gthumb] oauth dialog: no need to disconnect from the view
- Date: Sat, 22 Dec 2012 16:10:35 +0000 (UTC)
commit 52f0b8b876447f1d3604116c96758fd95f4f2645
Author: Paolo Bacchilega <paobac src gnome org>
Date: Sat Dec 22 16:43:20 2012 +0100
oauth dialog: no need to disconnect from the view
extensions/oauth/oauth-ask-authorization-dialog.c | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/extensions/oauth/oauth-ask-authorization-dialog.c b/extensions/oauth/oauth-ask-authorization-dialog.c
index 1dd4fd6..9329d89 100644
--- a/extensions/oauth/oauth-ask-authorization-dialog.c
+++ b/extensions/oauth/oauth-ask-authorization-dialog.c
@@ -58,9 +58,6 @@ oauth_ask_authorization_dialog_finalize (GObject *obj)
OAuthAskAuthorizationDialog *self;
self = OAUTH_ASK_AUTHORIZATION_DIALOG (obj);
- if (g_signal_handler_is_connected (self->priv->view, self->priv->load_changed_id))
- g_signal_handler_disconnect (self->priv->view, self->priv->load_changed_id);
- webkit_web_view_stop_loading (WEBKIT_WEB_VIEW (self->priv->view));
_g_object_unref (self->priv->builder);
G_OBJECT_CLASS (oauth_ask_authorization_dialog_parent_class)->finalize (obj);
@@ -70,7 +67,7 @@ oauth_ask_authorization_dialog_finalize (GObject *obj)
static void
oauth_ask_authorization_dialog_class_init (OAuthAskAuthorizationDialogClass *klass)
{
- GObjectClass *object_class;
+ GObjectClass *object_class;
g_type_class_add_private (klass, sizeof (OAuthAskAuthorizationDialogPrivate));
@@ -125,6 +122,7 @@ webkit_view_load_changed_cb (WebKitWebView *web_view,
break;
case WEBKIT_LOAD_FINISHED:
gtk_notebook_set_current_page (GTK_NOTEBOOK(GET_WIDGET ("dialog_content")), _WEB_VIEW_PAGE);
+ gtk_widget_grab_focus (self->priv->view);
g_signal_emit (self, oauth_ask_authorization_dialog_signals[LOADED], 0);
break;
default:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]