summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Berg <bberg@redhat.com>2018-03-08 12:06:10 +0100
committerGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>2018-03-16 22:06:38 +0000
commitad72018fa61238b50f7320a9b3dc13ea37cd1f6c (patch)
treef0ef9f5be07847a9063eafe5980ba34d2bc4d20f
parent91f8c02b3cf71f849dbfd320a580db2d1f8dfd75 (diff)
downloadgnome-control-center-ad72018fa61238b50f7320a9b3dc13ea37cd1f6c.tar.gz
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)
-rw-r--r--panels/network/network-dialogs.c29
1 files changed, 0 insertions, 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
@@ -98,19 +98,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,
gpointer user_data)
@@ -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.
*/