[network-manager-applet] applet: restore deprecated functions for nag dialog
- From: Thomas Haller <thaller src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [network-manager-applet] applet: restore deprecated functions for nag dialog
- Date: Thu, 29 Aug 2013 18:29:01 +0000 (UTC)
commit e21d598896ccd2c52850f52d21fe1d5aaa4e5410
Author: Thomas Haller <thaller redhat com>
Date: Wed Aug 28 13:00:52 2013 +0200
applet: restore deprecated functions for nag dialog
These functions were removed, which breakes gnome-control-center.
Restore the function definitions to fix it but let them return
dummy values.
As nma_wifi_dialog_nag_user most of the time returned NULL anyway
(to indicate "no nagging"), this dummy behaviour should not cause
any issues.
https://bugzilla.gnome.org/show_bug.cgi?id=706964
src/libnm-gtk/nm-wifi-dialog.c | 23 +++++++++++++++++++++++
src/libnm-gtk/nm-wifi-dialog.h | 9 +++++++++
2 files changed, 32 insertions(+), 0 deletions(-)
---
diff --git a/src/libnm-gtk/nm-wifi-dialog.c b/src/libnm-gtk/nm-wifi-dialog.c
index 2a53ac0..496220c 100644
--- a/src/libnm-gtk/nm-wifi-dialog.c
+++ b/src/libnm-gtk/nm-wifi-dialog.c
@@ -92,6 +92,17 @@ typedef struct {
static gboolean security_combo_init (NMAWifiDialog *self, gboolean secrets_only);
static void ssid_entry_changed (GtkWidget *entry, gpointer user_data);
+void
+nma_wifi_dialog_set_nag_ignored (NMAWifiDialog *self, gboolean ignored)
+{
+}
+
+gboolean
+nma_wifi_dialog_get_nag_ignored (NMAWifiDialog *self)
+{
+ return TRUE;
+}
+
static void
size_group_clear (GtkSizeGroup *group)
{
@@ -1321,6 +1332,18 @@ nma_wifi_dialog_new_for_create (NMClient *client, NMRemoteSettings *settings)
return internal_new_other (client, settings, TRUE);
}
+/**
+ * nma_wifi_dialog_nag_user:
+ * @self:
+ *
+ * Returns: (transfer full):
+ */
+GtkWidget *
+nma_wifi_dialog_nag_user (NMAWifiDialog *self)
+{
+ return NULL;
+}
+
static void
nma_wifi_dialog_init (NMAWifiDialog *self)
{
diff --git a/src/libnm-gtk/nm-wifi-dialog.h b/src/libnm-gtk/nm-wifi-dialog.h
index 3c33b34..d12dd6a 100644
--- a/src/libnm-gtk/nm-wifi-dialog.h
+++ b/src/libnm-gtk/nm-wifi-dialog.h
@@ -71,5 +71,14 @@ NMConnection * nma_wifi_dialog_get_connection (NMAWifiDialog *self,
NMDevice **device,
NMAccessPoint **ap);
+GLIB_DEPRECATED
+GtkWidget * nma_wifi_dialog_nag_user (NMAWifiDialog *self);
+
+GLIB_DEPRECATED
+void nma_wifi_dialog_set_nag_ignored (NMAWifiDialog *self, gboolean ignored);
+
+GLIB_DEPRECATED
+gboolean nma_wifi_dialog_get_nag_ignored (NMAWifiDialog *self);
+
#endif /* NMA_WIFI_DIALOG_H */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]