Update to 0.9.7.997 (0.9.8-beta2)

This commit is contained in:
Dan Williams 2013-02-09 00:38:36 -06:00
parent f438335235
commit 3c26c4f07e
3 changed files with 15 additions and 89 deletions

View File

@ -1,80 +0,0 @@
From 50f30bc33cb928cac2b061a390fdd0f0720ad716 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Ji=C5=99=C3=AD=20Klime=C5=A1?= <jklimes@redhat.com>
Date: Tue, 11 Dec 2012 15:24:34 +0100
Subject: [PATCH] editor: fix populating firewall zone in general page
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Signed-off-by: Jiří Klimeš <jklimes@redhat.com>
---
src/connection-editor/page-general.c | 24 +++++++++++++++---------
1 file changed, 15 insertions(+), 9 deletions(-)
diff --git a/src/connection-editor/page-general.c b/src/connection-editor/page-general.c
index 3ab9049..2597971 100644
--- a/src/connection-editor/page-general.c
+++ b/src/connection-editor/page-general.c
@@ -77,10 +77,10 @@ zones_reply (DBusGProxy *proxy, DBusGProxyCall *call, gpointer user_data)
G_TYPE_STRV, &priv->zones,
G_TYPE_INVALID);
+ priv->got_zones = TRUE;
+
if (priv->setup_finished)
populate_firewall_zones_ui (self);
- else
- priv->got_zones = TRUE;
g_clear_error (&error);
g_object_unref (proxy);
@@ -94,6 +94,7 @@ get_zones_from_firewall (CEPageGeneral *self)
DBusGConnection *bus;
DBusGProxy *proxy;
+ /* Initialize got_zones to TRUE for cases there's no FirewallD */
priv->got_zones = TRUE;
bus = dbus_g_bus_get (DBUS_BUS_SYSTEM, NULL);
@@ -193,7 +194,7 @@ populate_firewall_zones_ui (CEPageGeneral *self)
guint32 combo_idx = 0, idx;
s_zone = nm_setting_connection_get_zone (setting);
-
+
/* Always add "fake" 'Default' zone for default firewall settings */
#if GTK_CHECK_VERSION (2,24,0)
gtk_combo_box_text_append_text (priv->firewall_zone, FIREWALL_ZONE_DEFAULT);
@@ -355,17 +356,22 @@ ui_to_setting (CEPageGeneral *self)
GtkTreeIter iter;
gboolean autoconnect = FALSE, everyone = FALSE;
+ /* We can't take and save zone until the combo was properly initialized. Zones
+ * are received from FirewallD asynchronously; got_zones indicates we are ready.
+ */
+ if (priv->got_zones) {
#if GTK_CHECK_VERSION (2,24,0)
- zone = gtk_combo_box_text_get_active_text (priv->firewall_zone);
+ zone = gtk_combo_box_text_get_active_text (priv->firewall_zone);
#else
- zone = gtk_combo_box_get_active_text (priv->firewall_zone);
+ zone = gtk_combo_box_get_active_text (priv->firewall_zone);
#endif
- if (g_strcmp0 (zone, FIREWALL_ZONE_DEFAULT) == 0)
- zone = NULL;
- g_object_set (priv->setting, NM_SETTING_CONNECTION_ZONE, zone, NULL);
+ if (g_strcmp0 (zone, FIREWALL_ZONE_DEFAULT) == 0)
+ zone = NULL;
+ g_object_set (priv->setting, NM_SETTING_CONNECTION_ZONE, zone, NULL);
- g_free (zone);
+ g_free (zone);
+ }
if ( gtk_toggle_button_get_active (priv->dependent_vpn_checkbox)
&& gtk_combo_box_get_active_iter (priv->dependent_vpn, &iter))
--
1.7.11.7

View File

@ -2,16 +2,16 @@
%define glib2_version 2.26.0 %define glib2_version 2.26.0
%define dbus_version 1.4 %define dbus_version 1.4
%define dbus_glib_version 0.86 %define dbus_glib_version 0.86
%define nm_version 1:0.9.7.0 %define nm_version 1:0.9.7.997
%define obsoletes_ver 1:0.9.7 %define obsoletes_ver 1:0.9.7
%define snapshot .git20121211 %define snapshot %{nil}
%define realversion 0.9.7.0 %define realversion 0.9.7.997
Name: network-manager-applet Name: network-manager-applet
Summary: A network control and status applet for NetworkManager Summary: A network control and status applet for NetworkManager
Version: 0.9.7.0 Version: 0.9.7.997
Release: 6%{snapshot}%{?dist} Release: 1%{snapshot}%{?dist}
Group: Applications/System Group: Applications/System
License: GPLv2+ License: GPLv2+
URL: http://www.gnome.org/projects/NetworkManager/ URL: http://www.gnome.org/projects/NetworkManager/
@ -21,7 +21,6 @@ Source: http://ftp.gnome.org/pub/GNOME/sources/network-manager-applet/0.9/%{name
Patch0: nm-applet-no-notifications.patch Patch0: nm-applet-no-notifications.patch
Patch1: nm-applet-wifi-dialog-ui-fixes.patch Patch1: nm-applet-wifi-dialog-ui-fixes.patch
Patch2: applet-ignore-deprecated.patch Patch2: applet-ignore-deprecated.patch
Patch3: fix-firewall-zone.patch
Requires: NetworkManager >= %{nm_version} Requires: NetworkManager >= %{nm_version}
Requires: NetworkManager-glib >= %{nm_version} Requires: NetworkManager-glib >= %{nm_version}
@ -108,7 +107,6 @@ nm-applet, nm-connection-editor, and the GNOME control center.
%patch0 -p1 -b .no-notifications %patch0 -p1 -b .no-notifications
%patch1 -p1 -b .applet-wifi-ui %patch1 -p1 -b .applet-wifi-ui
%patch2 -p1 -b .no-deprecated %patch2 -p1 -b .no-deprecated
%patch3 -p1 -b .fix-firewall-zone
%build %build
autoreconf -i -f autoreconf -i -f
@ -225,11 +223,19 @@ glib-compile-schemas %{_datadir}/glib-2.0/schemas &>/dev/null || :
%{_datadir}/gir-1.0/NMGtk-1.0.gir %{_datadir}/gir-1.0/NMGtk-1.0.gir
%changelog %changelog
* Fri Feb 8 2013 Dan Williams <dcbw@redhat.com> - 0.9.7.997-1
- Update to 0.9.7.997 (0.9.8-beta2)
- editor: better handling of gateway entry for IPv4
- editor: fix some mnemonics (rh #893466)
- editor: fix saving connection when ignoring CA certificate
- editor: enable Bridge connection editing
- editor: hide widgets not relevant for VPN connections
* Tue Dec 11 2012 Jiří Klimeš <jklimes@redhat.com> - 0.9.7.0-6.git20121211 * Tue Dec 11 2012 Jiří Klimeš <jklimes@redhat.com> - 0.9.7.0-6.git20121211
- editor: fix populating Firewall zone in 'General' tab - editor: fix populating Firewall zone in 'General' tab
* Tue Dec 11 2012 Jiří Klimeš <jklimes@redhat.com> - 0.9.7.0-5.git20121211 * Tue Dec 11 2012 Jiří Klimeš <jklimes@redhat.com> - 0.9.7.0-5.git20121211
- Update to git snapshot (git20121211) - Update to git snapshot (git20121211) without bridges
* Thu Nov 08 2012 Kalev Lember <kalevlember@gmail.com> - 0.9.7.0-4.git20121016 * Thu Nov 08 2012 Kalev Lember <kalevlember@gmail.com> - 0.9.7.0-4.git20121016
- Update the versioned obsoletes for the new F17 NM build - Update the versioned obsoletes for the new F17 NM build

View File

@ -1 +1 @@
ee2ed708734fe7982da21832dc2e8748 network-manager-applet-0.9.7.0.git20121211.tar.bz2 aee64255fbf63389fd782ea392e1db42 network-manager-applet-0.9.7.997.tar.bz2