After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 673659 - Add accessor for StartupWMClass in desktop files
Add accessor for StartupWMClass in desktop files
Status: RESOLVED FIXED
Product: glib
Classification: Platform
Component: gio
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gtkdev
gtkdev
Depends on:
Blocks: 673657
 
 
Reported: 2012-04-06 19:00 UTC by Giovanni Campagna
Modified: 2012-04-14 00:44 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
GDesktopAppInfo: add an accessor for StartupWMClass (5.55 KB, patch)
2012-04-06 19:01 UTC, Giovanni Campagna
reviewed Details | Review
GDesktopAppInfo: add an accessor for StartupWMClass (6.12 KB, patch)
2012-04-06 22:10 UTC, Giovanni Campagna
committed Details | Review
Add version macros for 2.34 (1.26 KB, patch)
2012-04-09 18:28 UTC, Giovanni Campagna
reviewed Details | Review
GDesktopAppInfo: add an accessor for StartupWMClass (5.95 KB, patch)
2012-04-09 18:28 UTC, Giovanni Campagna
reviewed Details | Review
Add version macros for 2.34 (1.54 KB, patch)
2012-04-14 00:23 UTC, Giovanni Campagna
committed Details | Review
GDesktopAppInfo: add an accessor for StartupWMClass (5.96 KB, patch)
2012-04-14 00:33 UTC, Giovanni Campagna
committed Details | Review

Description Giovanni Campagna 2012-04-06 19:00:45 UTC
(picking gio for lack of a more suitable component)

gnome-shell needs to read StartupWMClass for bug 673657
Comment 1 Giovanni Campagna 2012-04-06 19:01:13 UTC
Created attachment 211503 [details] [review]
GDesktopAppInfo: add an accessor for StartupWMClass

Components using GIO to do window to application matching can
use that field to retrieve potential candidates.
Comment 2 Jasper St. Pierre (not reading bugmail) 2012-04-06 21:58:20 UTC
Review of attachment 211503 [details] [review]:

Needs an entry in docs/reference/gio/gio-sections.txt. Otherwise, looks fine.
Comment 3 Giovanni Campagna 2012-04-06 22:10:54 UTC
Created attachment 211517 [details] [review]
GDesktopAppInfo: add an accessor for StartupWMClass

Components using GIO to do window to application matching can
use that field to retrieve potential candidates.
Comment 4 Jasper St. Pierre (not reading bugmail) 2012-04-06 22:16:23 UTC
Review of attachment 211517 [details] [review]:

Looks good.
Comment 5 Giovanni Campagna 2012-04-06 22:27:29 UTC
Attachment 211517 [details] pushed as 3ccc4cf - GDesktopAppInfo: add an accessor for StartupWMClass
Comment 6 Matthias Clasen 2012-04-06 23:15:42 UTC
I've reverted this commit. We haven't branched yet
Comment 7 Jasper St. Pierre (not reading bugmail) 2012-04-06 23:19:56 UTC
Hm, I didn't think adding new API like this was a break. Sorry about that.
Comment 8 Matthias Clasen 2012-04-09 14:02:25 UTC
we don't add new api in stable branches in the gtk stack - we want application authors to know that if their app builds against 2.32.10, it will run against 2.32.2 as well.
Comment 9 Matthias Clasen 2012-04-09 14:04:34 UTC
Also, the header needs to get a GLIB_AVAILABLE_IN_2_34 decoration for the new
function.
Comment 10 Giovanni Campagna 2012-04-09 18:28:31 UTC
Created attachment 211663 [details] [review]
Add version macros for 2.34

This marks the start of the new development cycle, and opens the
window for API additions.
Comment 11 Giovanni Campagna 2012-04-09 18:28:55 UTC
Created attachment 211664 [details] [review]
GDesktopAppInfo: add an accessor for StartupWMClass

Components using GIO to do window to application matching can
use that field to retrieve potential candidates.
Now with version tags.
Comment 12 Matthias Clasen 2012-04-14 00:19:05 UTC
Review of attachment 211663 [details] [review]:

can you add GLIB_DEPRECATED_IN_2_34 at the same time ?
Comment 13 Matthias Clasen 2012-04-14 00:21:15 UTC
Review of attachment 211664 [details] [review]:

::: gio/gdesktopappinfo.c
@@ +3407,3 @@
+ * @app_info.
+ * Returns: (transfer none): the startup WM class, or NULL if none is set
+ * in the desktop file.

Please add an empty line before Returns:
Comment 14 Giovanni Campagna 2012-04-14 00:23:03 UTC
Created attachment 212026 [details] [review]
Add version macros for 2.34

This marks the start of the new development cycle, and opens the
window for API additions.
Comment 15 Matthias Clasen 2012-04-14 00:28:50 UTC
Review of attachment 212026 [details] [review]:

thanks, looks good now
Comment 16 Giovanni Campagna 2012-04-14 00:33:35 UTC
Created attachment 212027 [details] [review]
GDesktopAppInfo: add an accessor for StartupWMClass

Components using GIO to do window to application matching can
use that field to retrieve potential candidates.
Comment 17 Matthias Clasen 2012-04-14 00:42:41 UTC
Review of attachment 212027 [details] [review]:

::: gio/gdesktopappinfo.c
@@ +3408,3 @@
+ *
+ * Returns: (transfer none): the startup WM class, or NULL if none is set
+ * in the desktop file.

One thing I overlooked is that NULL should be %NULL in docs. Please fix that up while committing
Comment 18 Giovanni Campagna 2012-04-14 00:44:53 UTC
Attachment 212027 [details] pushed as bb7f3e0 - GDesktopAppInfo: add an accessor for StartupWMClass