GDesktopAppInfo: Add "filename" property for bindings
authorColin Walters <walters@verbum.org>
Tue, 26 Apr 2011 19:08:54 +0000 (15:08 -0400)
committerColin Walters <walters@verbum.org>
Tue, 26 Apr 2011 19:08:54 +0000 (15:08 -0400)
commit2a3f7f49b46abdaf2d82e704a3ee044ed57fb61f
treef3d5b89b57f3e943adbc2af12c1942468a4f6762
parent1056f2240c46081d8f55fe6f121ddee6a0370d96
GDesktopAppInfo: Add "filename" property for bindings

GDesktopAppInfo violates the GObject rule that your C constructors
should just be thin wrappers around g_object_new().  While GKeyFile
isn't introspctable, this patch allows from JavaScript:

var app = new Gio.DesktopAppInfo({ filename: '/path/to/foo.desktop' });

https://bugzilla.gnome.org/show_bug.cgi?id=648425
gio/gdesktopappinfo.c