Re: Inconsistences using GUdev.Client

David Zeuthen <[email protected]>
Newsgroups gmane.linux.hotplug.devel
Message-ID <CAHkOivSWKHT1sSz_71NjYWAA6gzkrwYGScTAUZXk5K9-c=itgQ@mail.gmail.com>
Hi,

On Thu, Apr 12, 2012 at 8:18 AM, Javier Hernández Antúnez
<[email protected]> wrote:
> 16:59 < tomeu> the problem is people doing things in _new_* that
> should be done instead in _init or _construct
> 16:59 < tomeu> jhernandez: it's a bug that should be reported
> 17:00 < tomeu> (in GUDev)
> 17:00 < jhernandez> tomeu: ACK

I think you are confused, see

http://cgit.freedesktop.org/systemd/systemd/tree/src/udev/gudev/gudevclient.c#n318

basically, what we do is this

  GUdevClient *
  g_udev_client_new (const gchar * const *subsystems)
  {
    return G_UDEV_CLIENT (g_object_new (G_UDEV_TYPE_CLIENT,
"subsystems", subsystems, NULL));
  }

I think the python bindings are just buggy - probably they don't
support GStrv GObject properties very well.

    David
--
To unsubscribe from this list: send the line "unsubscribe linux-hotplug" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.