[libgda] Validate GdaBrowser' authentication dialog upon entry activated
- From: Vivien Malerba <vivien src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgda] Validate GdaBrowser' authentication dialog upon entry activated
- Date: Sun, 22 May 2011 15:53:29 +0000 (UTC)
commit 25c2d9c66296ab7fab81ac2212e2c60aeb67bf77
Author: Vivien Malerba <malerba gnome-db org>
Date: Sun May 22 17:47:47 2011 +0200
Validate GdaBrowser' authentication dialog upon entry activated
tools/browser/auth-dialog.c | 10 ++++++++--
1 files changed, 8 insertions(+), 2 deletions(-)
---
diff --git a/tools/browser/auth-dialog.c b/tools/browser/auth-dialog.c
index 37ade6f..8231624 100644
--- a/tools/browser/auth-dialog.c
+++ b/tools/browser/auth-dialog.c
@@ -368,6 +368,12 @@ update_dialog_focus (AuthDialog *dialog)
}
}
+static void
+auth_form_activated_cb (G_GNUC_UNUSED GdauiBasicForm *form, AuthDialog *dialog)
+{
+ gtk_dialog_response (GTK_DIALOG (dialog), GTK_RESPONSE_ACCEPT);
+}
+
/**
* auth_dialog_add_cnc_string
*/
@@ -488,8 +494,8 @@ auth_dialog_add_cnc_string (AuthDialog *dialog, const gchar *cnc_string, GError
set = gda_set_copy (pinfo->auth_params);
ad->auth_widget = gdaui_basic_form_new (set);
- /*g_signal_connect (G_OBJECT (ad->auth_widget), "holder-changed",
- G_CALLBACK (auth_form_changed), dialog);*/
+ g_signal_connect (G_OBJECT (ad->auth_widget), "activated",
+ G_CALLBACK (auth_form_activated_cb), dialog);
g_object_unref (set);
/* add widget */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]