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 688682 - Wrap g_variant_type_new_tuple()
Wrap g_variant_type_new_tuple()
Status: RESOLVED FIXED
Product: glibmm
Classification: Bindings
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gtkmm-forge
gtkmm-forge
Depends on:
Blocks:
 
 
Reported: 2012-11-19 22:16 UTC by Andrew Potter
Modified: 2012-11-21 04:02 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
VariantType: Implement VariantType::create_tuple() (2.51 KB, patch)
2012-11-19 22:16 UTC, Andrew Potter
needs-work Details | Review
VariantType: Implement VariantType::create_tuple() (2.51 KB, patch)
2012-11-20 21:48 UTC, Andrew Potter
none Details | Review
VariantType: Implement VariantType::create_tuple() (2.49 KB, patch)
2012-11-20 21:51 UTC, Andrew Potter
committed Details | Review

Description Andrew Potter 2012-11-19 22:16:06 UTC
Created attachment 229411 [details] [review]
VariantType: Implement VariantType::create_tuple()

Wrapping g_variant_type_new_tuple() was marked TODO in varianttype.hg, so I went ahead and implemented it following the style of Variant::create_tuple.

I marked the document as "Since 3.8" but I don't know if that's really appropriate or not.
Comment 1 José Alburquerque 2012-11-20 21:29:56 UTC
Review of attachment 229411 [details] [review]:

The patch looks good.

::: glib/src/varianttype.hg
@@ +124,3 @@
+    *
+    * @param items A vector of VariantTypes, one for each item.
+    * @return A new tuple VariantType

Just add a period at the end.

@@ +126,3 @@
+    * @return A new tuple VariantType
+    *
+    * Since 3.8

This should use an @newin{} directive as is done generally.  It should be @newin{2,36} because it will go into glibmm.
Comment 2 Andrew Potter 2012-11-20 21:48:44 UTC
Created attachment 229511 [details] [review]
VariantType: Implement VariantType::create_tuple()

>Just add a period at the end.
Done
>It should be @newin{2,36} because it will go into glibmm.
Done

It also now applies cleanly against d95b42
Comment 3 Andrew Potter 2012-11-20 21:51:17 UTC
Created attachment 229512 [details] [review]
VariantType: Implement VariantType::create_tuple()

Uploaded the wrong file before, this one is the right version.
Comment 4 José Alburquerque 2012-11-21 04:01:15 UTC
Pushed to the master branch of glibmm with a ChangeLog entry:

http://git.gnome.org/browse/glibmm/commit/?id=fadf0377c5f4513ddc2175a091d55fe76d7a44a4

Murray, the glibmm maintainer, always requests that the ChangeLog file be updated.  The following page explains the different tools available to deal with modifying the ChangeLog file:

https://live.gnome.org/ChangeLog