[network-manager-applet] libnm-gtk/libnma: emit "changed" signal on password entry when icon changes
- From: Jiří Klimeš <jklimes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [network-manager-applet] libnm-gtk/libnma: emit "changed" signal on password entry when icon changes
- Date: Tue, 20 Oct 2015 07:03:04 +0000 (UTC)
commit 5745f60d424823ca60320a91fd87f33603656137
Author: Jiří Klimeš <jklimes redhat com>
Date: Fri Oct 16 14:31:42 2015 +0200
libnm-gtk/libnma: emit "changed" signal on password entry when icon changes
That allows users to re-check widgets/connection with new secret flags,
because they may be significant.
Related to https://bugzilla.gnome.org/show_bug.cgi?id=756638
Related to https://bugzilla.redhat.com/show_bug.cgi?id=1272871
src/libnm-gtk/nm-ui-utils.c | 6 +++++-
src/libnma/nma-ui-utils.c | 6 +++++-
2 files changed, 10 insertions(+), 2 deletions(-)
---
diff --git a/src/libnm-gtk/nm-ui-utils.c b/src/libnm-gtk/nm-ui-utils.c
index 5a5ba23..8be86b6 100644
--- a/src/libnm-gtk/nm-ui-utils.c
+++ b/src/libnm-gtk/nm-ui-utils.c
@@ -755,8 +755,12 @@ activate_menu_item_cb (GtkMenuItem *menuitem, gpointer user_data)
flags, NULL);
/* Change icon */
- if (info->passwd_entry)
+ if (info->passwd_entry) {
change_password_storage_icon (info->passwd_entry, info->item_number);
+
+ /* Emit "changed" signal on the entry */
+ g_signal_emit_by_name (G_OBJECT (info->passwd_entry), "changed");
+ }
}
}
diff --git a/src/libnma/nma-ui-utils.c b/src/libnma/nma-ui-utils.c
index fd17c8b..690c43c 100644
--- a/src/libnma/nma-ui-utils.c
+++ b/src/libnma/nma-ui-utils.c
@@ -190,8 +190,12 @@ activate_menu_item_cb (GtkMenuItem *menuitem, gpointer user_data)
flags, NULL);
/* Change icon */
- if (info->passwd_entry)
+ if (info->passwd_entry) {
change_password_storage_icon (info->passwd_entry, info->item_number);
+
+ /* Emit "changed" signal on the entry */
+ g_signal_emit_by_name (G_OBJECT (info->passwd_entry), "changed");
+ }
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]