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 729983 - gdk: assorted introspection and documentation syntax fixes
gdk: assorted introspection and documentation syntax fixes
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: .General
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2014-05-12 05:56 UTC by Evan Nemerson
Modified: 2014-05-19 18:55 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
gdk: assorted introspection and documentation fixes (11.76 KB, patch)
2014-05-12 05:56 UTC, Evan Nemerson
needs-work Details | Review
gdk: assorted introspection and documentation fixes (10.53 KB, patch)
2014-05-17 03:16 UTC, Evan Nemerson
committed Details | Review

Description Evan Nemerson 2014-05-12 05:56:38 UTC
Created attachment 276358 [details] [review]
gdk: assorted introspection and documentation fixes

I've ported over some annotations from Vala's metadata files, added some other missing annotations I noticed, added a % or # to some constants and types where appropriate (e.g., NULL->%NULL), etc.
Comment 1 Matthias Clasen 2014-05-16 14:32:22 UTC
Review of attachment 276358 [details] [review]:

Other than that, looks fine

::: gdk/gdkdisplay.c
@@ +50,3 @@
  * - To manage and provide information about the available #GdkScreens
  *
+ * #GdkDisplay objects are the GDK representation of an X Display,

This one was intentionally left unlinkified, to avoid 'sea of links' syndrome.

@@ +54,3 @@
  * a keyboard, a pointing device (such as a mouse) and one or more
  * screens.
+ * It is used to open and keep track of various #GdkScreen objects

And this too

::: gdk/gdkscreen.c
@@ +40,3 @@
  * combines several physical monitors (see gdk_screen_get_n_monitors()).
  *
+ * #GdkScreen is used throughout GDK and GTK+ to specify which screen

This one was intentionally left unlinkified, to avoid 'sea of links' syndrome.
Comment 2 Evan Nemerson 2014-05-16 14:56:05 UTC
(In reply to comment #1)
> Review of attachment 276358 [details] [review]:
> @@ +50,3 @@
>   * - To manage and provide information about the available #GdkScreens
>   *
> + * #GdkDisplay objects are the GDK representation of an X Display,
> 
> This one was intentionally left unlinkified, to avoid 'sea of links' syndrome.

The change isn't really about making them links, it's about cleaning up the docs for languages other than C.  Adding the # marks them so that the name can be transformed to match whatever it is in that language (i.e., "Display" or "Gdk.Display" instead of "GdkDisplay").
Comment 3 Evan Nemerson 2014-05-16 18:03:34 UTC
See http://valadoc.org/gdk-3.0/Gdk.Display.html for an example of what I'm talking about.  I've already talked to Florian about fixing #GtkScreens to discard that trailing 's', but note that it talks about GtkDisplay instead of Display.  I don't really care about the link, but it's nice for the type name to be correct for whatever language you're using.
Comment 4 Evan Nemerson 2014-05-17 03:16:34 UTC
Created attachment 276695 [details] [review]
gdk: assorted introspection and documentation fixes

Here is the same patch without those three changes.  I still think the first patch is better.
Comment 5 Matthias Clasen 2014-05-19 18:17:17 UTC
Review of attachment 276695 [details] [review]:

thanks