[gnome-control-center/gnome-3-28] network: Remove nagging code which removed from libnma
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center/gnome-3-28] network: Remove nagging code which removed from libnma
- Date: Fri, 16 Mar 2018 22:07:49 +0000 (UTC)
commit ad72018fa61238b50f7320a9b3dc13ea37cd1f6c
Author: Benjamin Berg <bberg redhat com>
Date: Thu Mar 8 12:06:10 2018 +0100
network: Remove nagging code which removed from libnma
This has been removed long ago and there are only stubs left for g-c-c.
See also:
- https://bugzilla.gnome.org/show_bug.cgi?id=706964
- https://git.gnome.org/browse/network-manager-applet/commit/?id=e21d598896ccd2c52850f52d21fe1d5aaa4e5410
https://bugzilla.gnome.org/show_bug.cgi?id=794171
(cherry picked from commit 3117e2dc4a5386b397e14c7a04e8bbb5eecfe800)
panels/network/network-dialogs.c | 29 -----------------------------
1 file changed, 29 deletions(-)
---
diff --git a/panels/network/network-dialogs.c b/panels/network/network-dialogs.c
index 23a9a832d..5f3c255fe 100644
--- a/panels/network/network-dialogs.c
+++ b/panels/network/network-dialogs.c
@@ -97,19 +97,6 @@ activate_new_cb (GObject *source_object,
}
}
-static void
-nag_dialog_response_cb (GtkDialog *nag_dialog,
- gint response,
- gpointer user_data)
-{
- NMAWifiDialog *wireless_dialog = NMA_WIFI_DIALOG (user_data);
-
- if (response == GTK_RESPONSE_NO) { /* user opted not to correct the warning */
- nma_wifi_dialog_set_nag_ignored (wireless_dialog, TRUE);
- gtk_dialog_response (GTK_DIALOG (wireless_dialog), GTK_RESPONSE_OK);
- }
-}
-
static void
wireless_dialog_response_cb (GtkDialog *foo,
gint response,
@@ -126,22 +113,6 @@ wireless_dialog_response_cb (GtkDialog *foo,
if (response != GTK_RESPONSE_OK)
goto done;
- if (!nma_wifi_dialog_get_nag_ignored (dialog)) {
- GtkWidget *nag_dialog;
-
- /* Nag the user about certificates or whatever. Only destroy the dialog
- * if no nagging was done.
- */
- nag_dialog = nma_wifi_dialog_nag_user (dialog);
- if (nag_dialog) {
- gtk_window_set_transient_for (GTK_WINDOW (nag_dialog), GTK_WINDOW (dialog));
- g_signal_connect (nag_dialog, "response",
- G_CALLBACK (nag_dialog_response_cb),
- dialog);
- return;
- }
- }
-
/* nma_wifi_dialog_get_connection() returns a connection with the
* refcount incremented, so the caller must remember to unref it.
*/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]