GNOME Bugzilla – Bug 698686
GUnixSocketAddress: fix construct parameter issue
Last modified: 2013-04-23 18:36:36 UTC
See patch.
Created attachment 242275 [details] [review] 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.
Comment on attachment 242275 [details] [review] GUnixSocketAddress: fix construct parameter issue ok, though a test would be nice
Created attachment 242278 [details] [review] Test GUnixSocketAddress construction This test fails without the previous fix and works properly with it.
Attachment 242275 [details] pushed as 9c243be - GUnixSocketAddress: fix construct parameter issue Attachment 242278 [details] pushed as c91af2a - Test GUnixSocketAddress construction