[libgda] GdauiLogin: emit "changed" signal when any authentication data has changed
- From: Vivien Malerba <vivien src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgda] GdauiLogin: emit "changed" signal when any authentication data has changed
- Date: Mon, 2 Jan 2012 21:15:22 +0000 (UTC)
commit 905962b763eb53606d5a95cc02cbf3d06b2e88cb
Author: Vivien Malerba <malerba gnome-db org>
Date: Mon Jan 2 21:25:19 2012 +0100
GdauiLogin: emit "changed" signal when any authentication data has changed
libgda-ui/gdaui-login.c | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/libgda-ui/gdaui-login.c b/libgda-ui/gdaui-login.c
index 676e2bc..abcc6eb 100644
--- a/libgda-ui/gdaui-login.c
+++ b/libgda-ui/gdaui-login.c
@@ -139,6 +139,12 @@ config_dsn_changed_cb (G_GNUC_UNUSED GdaConfig *config, GdaDsnInfo *dsn, GdauiLo
}
static void
+auth_data_changed_cb (GdauiProviderAuthEditor *auth, GdauiLogin *login)
+{
+ g_signal_emit (login, gdaui_login_signals [CHANGED], 0, settings_are_valid (login));
+}
+
+static void
gdaui_login_init (GdauiLogin *login, G_GNUC_UNUSED GdauiLoginClass *klass)
{
GtkWidget *table;
@@ -217,6 +223,8 @@ gdaui_login_init (GdauiLogin *login, G_GNUC_UNUSED GdauiLoginClass *klass)
login->priv->auth_widget = _gdaui_provider_auth_editor_new (NULL);
gtk_table_attach_defaults (GTK_TABLE (table), login->priv->auth_widget, 1, 3, 3, 4);
gtk_widget_show (login->priv->auth_widget);
+ g_signal_connect (login->priv->auth_widget, "changed",
+ G_CALLBACK (auth_data_changed_cb), login);
prov_entry_changed_cb (GDAUI_PROVIDER_SELECTOR (login->priv->prov_selector), login);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]