Re: [SOLVED] nm-applet icon in gnome-shell goes to gnome2/fallback mode

2011-08-09 Thread Arief M Utama

On 08/10/2011 01:24 AM, Arief M Utama wrote:


But after restarting my laptop, I found out that nm-applet icons has 
change back to gnome2-style icons. No more 
white-icon-with-black-background gnome-shell style.


Solved by reinstalling gjs libraries. Must've got overwritten somehow.

LoL@me :)

Now I do wonder what else got overwritten (and removed) by the install 
from sources. Guess I should've known better and shouldn't do any 
autogen --prefix=/usr ever again :)



All the best.
-arief

___
networkmanager-list mailing list
networkmanager-list@gnome.org
http://mail.gnome.org/mailman/listinfo/networkmanager-list


nm-applet icon in gnome-shell goes to gnome2/fallback mode

2011-08-09 Thread Arief M Utama
Hi all,


While trying to debug Debian bug#636137 (or Fedora/Redhat bug#713006) I
compiled and installed network-manager from git and also from debian's
experimental source.

After sort of finding the culprit for the bug (put some notes on both
bugtrack), I resort back to the original network-manager* packages
from Debian's
experimental.

But after restarting my laptop, I found out that nm-applet icons has change
back to gnome2-style icons. No more white-icon-with-black-background
gnome-shell style.

Tried many things like reinstalling network-manager*, purging and install,
restarting dbus, restarting system along the way, with no luck. The old icon
stayed.

As I shallowly understood from reading gnome-shell panel.js, panel icons are
supposed to be created by gnome-shell, but somehow it just doesn't work now.

Appreciate if anyone can give help or pointers of what's going on and how to
fix this.

Thanks.


All the best.
-arief
___
networkmanager-list mailing list
networkmanager-list@gnome.org
http://mail.gnome.org/mailman/listinfo/networkmanager-list


Re: [PATCH] [ModemManager] Some issues with SIM PIN handling

2011-08-09 Thread Eric Shienbrood
On Thu, Jul 21, 2011 at 12:53 AM, Dan Williams  wrote:

> On Tue, 2011-07-19 at 13:34 -0400, Eric Shienbrood wrote:
> > TL;DR: PIN retry count needs to be fetched after every PIN operation.
> >
> >
> > There are some deficiencies in the current handling of PIN-related
> > operations in modem-manager, such that it mis-reports the true state
> > of the SIM:
> >   * The EnablePin and ChangePin operations on an unlocked SIM will
> > result in the PIN retry count being decremented when they are
> > supplied with an incorrect PIN. But modem-manager doesn't
> > fetch the retry count following those operations, so the
> > UnlockRetries property remains unchanged.
> >   * After trying EnablePin or ChangePin three times with an
> > incorrect PIN, the SIM becomes blocked, i.e., it is locked
> > until the PUK is entered. Again, modem-manager doesn't
> > recognize this, so the UnlockRequired property doesn't change
> > - its value continues to be the empty string.
> >   * As implied by the above two points, modem-manager assumes that
> > the PIN retry count is relevant only when the SIM is locked.
> > Once it is successfully unlocked, modem-manager forces
> > UnlockRetries to zero. This is incorrect, because even when
> > the SIM is unlocked, you only have three chances to enter the
> > right PIN for the other operations.
> > So after an EnablePin or ChangePin operation, the modem needs to be
> > queried for the new retry count, and a check needs to be done to see
> > whether a SIM_PUK error was returned. Finally, UnlockRetries should
> > always reflect what the modem reports for the retry count, even when
> > the SIM is unlocked. The attached patch does these things.
>
> So we'll need to also update the API spec to indicate that when
> 'UnlockRequired' is empty, that UnlockRetries indicates the number of
> SIM-PIN tries, if known?  The spec won't match reality if this patch is
> applied without such an update.
>

You're right, I'll add that to the patch.


> Or, really, we could also add another property (a{sv} mapping lock name
> to # retries like {SIM-PIN => 3, SIM-PUK => 10}) that lists # tries for
> all known types.  I know of at least 3 or 4 different modems that can
> provide this information so it makes sense to extend this.

> There's one other enhancement that I think is needed in this area.
> > Right now, there's no way based on the UnlockRequired and
> > UnlockRetries properties to tell the difference between a SIM for
> > which PIN locking is disabled, and a SIM that has locking enabled, but
> > is currently unlocked. In both cases, UnlockedRequired is the empty
> > string, and UnlockRetries is zero. This presents a problem for a UI
> > that wants to put up a dialog to allow the user to enable or disable
> > PIN locking, and wants to show a checkbox that reflects the current
> > enabled/disabled state of locking.
> >
> >
> > I suggest either introducing a new property to explicitly describe the
> > enable/disable state, or reserving the {UnlockRequired = "",
> > UnlockRetries=0} combination for the case in which locking is
> > disabled. The first of these seems more robust to me, but perhaps
> > others have suggestions for alternatives.
>
> So perhaps a new SimLock property that's something like sa{sbu} where
> the first 's' is the current "UnlockRequired" value, and the dict is a
> mapping of { PIN name => (enable/disable, # tries) }.  Most of the
> "facilities" given by AT+CLCK have analogs for PIN names used with AT
> +CPIN so we could be OK here.  Thoughts?


So for the value of SimLock, you mean (sa{s(bu)}) ? What's the benefit of
concatenating the current UnlockRequired value with the dictionary? They
seem to be separate items to me, and I think I would keep them as separate
properties, i.e, keep the current UnlockRequired, and add a SimLockInfo
dictionary.

However, this may be overkill. The EnablePin and ChangePin methods in
ModemManager are hardwired to operate only on sim-pin, so there's not much
benefit in maintaining the enable/disable state for every possible facility.
And doing so would be expensive, since we'd have to issue 15 or more AT+CLCK
commands to query the status of every possible lock.

Furthermore, AFAICT there's no standard way to query the number of retries
remaining. The Icera Y-3300, for example, uses a proprietary command, but it
only reports # of retries for sim-pin, sim-pin2, sim-puk, and sim-puk2.
Ericsson returns info for those four, plus ph-net-pin, ph-netsub-pin,
ph-sp-pin, and ph-corp-pin (but apparently *not* the puk versions of those),
using their proprietary command.

So how about if we add the dictionary, but only populate it with entries for
sim-pin, sim-pin2, sim-puk, and sim-puk2? Or maybe we ask the plugin which
locks it can return info for, and just populate the dictionary with those?

Eric
___
networkma

[PATCH 2/2] libnm-glib: allow to constuct NMObject with NULL bus

2011-08-09 Thread Tomeu Vizoso
From: Tomeu Vizoso 

---
 libnm-glib/nm-object.c |6 +-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/libnm-glib/nm-object.c b/libnm-glib/nm-object.c
index c1f679d..cbcf291 100644
--- a/libnm-glib/nm-object.c
+++ b/libnm-glib/nm-object.c
@@ -140,11 +140,15 @@ set_property (GObject *object, guint prop_id,
  const GValue *value, GParamSpec *pspec)
 {
NMObjectPrivate *priv = NM_OBJECT_GET_PRIVATE (object);
+   DBusGConnection *connection;
 
switch (prop_id) {
case PROP_CONNECTION:
/* Construct only */
-   priv->connection = dbus_g_connection_ref ((DBusGConnection *) 
g_value_get_boxed (value));
+   connection = (DBusGConnection *) g_value_get_boxed (value);
+   if (!connection)
+   connection = dbus_g_bus_get (DBUS_BUS_SYSTEM, NULL);
+   priv->connection = dbus_g_connection_ref (connection);
break;
case PROP_PATH:
/* Construct only */
-- 
1.7.6

___
networkmanager-list mailing list
networkmanager-list@gnome.org
http://mail.gnome.org/mailman/listinfo/networkmanager-list


[PATCH 1/2] libnm-glib: warn early if an object is tried to be instantiated without a path

2011-08-09 Thread Tomeu Vizoso
From: Tomeu Vizoso 

---
 libnm-glib/nm-object.c |4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/libnm-glib/nm-object.c b/libnm-glib/nm-object.c
index 614f6af..c1f679d 100644
--- a/libnm-glib/nm-object.c
+++ b/libnm-glib/nm-object.c
@@ -79,8 +79,6 @@ constructor (GType type,
if (!object)
return NULL;
 
-   _nm_object_cache_add (NM_OBJECT (object));
-
priv = NM_OBJECT_GET_PRIVATE (object);
 
if (priv->connection == NULL || priv->path == NULL) {
@@ -94,6 +92,8 @@ constructor (GType type,

priv->path,

"org.freedesktop.DBus.Properties");
 
+   _nm_object_cache_add (NM_OBJECT (object));
+
return object;
 }
 
-- 
1.7.6

___
networkmanager-list mailing list
networkmanager-list@gnome.org
http://mail.gnome.org/mailman/listinfo/networkmanager-list


[PATCH 0/2] Couple of introspection improvements

2011-08-09 Thread Tomeu Vizoso
Hi,

these two patches belong to a series started by Daniel Drake that
improve libnm-glib's callability via gobject-introspection.

Thanks,

Tomeu


Tomeu Vizoso (2):
  libnm-glib: warn early if an object is tried to be instantiated
without a path
  libnm-glib: allow to constuct NMObject with NULL bus

 libnm-glib/nm-object.c |   10 +++---
 1 files changed, 7 insertions(+), 3 deletions(-)

-- 
1.7.6

___
networkmanager-list mailing list
networkmanager-list@gnome.org
http://mail.gnome.org/mailman/listinfo/networkmanager-list