GUnixSocketAddress: fix construct parameter issue
authorRyan Lortie <desrt@desrt.ca>
Tue, 23 Apr 2013 17:38:33 +0000 (13:38 -0400)
committerRyan Lortie <desrt@desrt.ca>
Tue, 23 Apr 2013 18:36:07 +0000 (14:36 -0400)
commit9c243beea25f08b506eab9e1e877d6ffe2b20531
tree1e36a301552863e9281c417f653827be54242285
parent7409ac0d14e197f0c2ef1ae86fa15ddaeea5a434
GUnixSocketAddress: fix construct parameter issue

GUnixSocketAddress has some very strange logic for interpreting its
construct paramters.  This logic behaves differently in these two cases:

  g_object_new (G_TYPE_UNIX_SOCKET_ADDRESS,
                "abstract", FALSE,
                "address-type", ...,
                NULL);

and

  g_object_new (G_TYPE_UNIX_SOCKET_ADDRESS,
                "address-type", ...,
                NULL);

even though the default value for "abstract" is already FALSE.

Change the way the code works so that it is not sensitive to people
merely setting a property to its default value.

https://bugzilla.gnome.org/show_bug.cgi?id=698686
gio/gunixsocketaddress.c