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 784888 - gtkapplication: Mark gtk_application_get_active_window() as nullable
gtkapplication: Mark gtk_application_get_active_window() as nullable
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Class: GtkApplication
unspecified
Other All
: Normal normal
: ---
Assigned To: gtkdev
gtkdev
Depends on:
Blocks:
 
 
Reported: 2017-07-13 05:58 UTC by Arun Raghavan
Modified: 2017-07-18 18:04 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
gtkapplication: Mark gtk_application_get_active_window() as nullable (861 bytes, patch)
2017-07-13 05:58 UTC, Arun Raghavan
none Details | Review
gtkapplication: Mark gtk_application_get_active_window() as nullable (899 bytes, patch)
2017-07-13 18:07 UTC, Arun Raghavan
committed Details | Review

Description Arun Raghavan 2017-07-13 05:58:28 UTC
It clearly is, and we need this to correctly generate bindings.
Comment 1 Arun Raghavan 2017-07-13 05:58:33 UTC
Created attachment 355481 [details] [review]
gtkapplication: Mark gtk_application_get_active_window() as nullable
Comment 2 Timm Bäder 2017-07-13 13:23:43 UTC
Review of attachment 355481 [details] [review]:

This should be pushed in master and gtk-3-22 once it's accepted, I presume?

::: gtk/gtkapplication.c
@@ +861,3 @@
  * recently-focused window within this application.
  *
+ * Returns: (transfer none) (nullable): the active window

We usually also explain when/why the function may return NULL like in https://git.gnome.org/browse/gtk+/tree/gtk/gtkwindow.c#n2789
Comment 3 Arun Raghavan 2017-07-13 18:07:31 UTC
Created attachment 355546 [details] [review]
gtkapplication: Mark gtk_application_get_active_window() as nullable
Comment 4 Arun Raghavan 2017-07-13 18:10:17 UTC
(In reply to Timm Bäder from comment #2)
> Review of attachment 355481 [details] [review] [review]:
> 
> This should be pushed in master and gtk-3-22 once it's accepted, I presume?

The fix is valid in 3.22 as well, so presumably yes.

> ::: gtk/gtkapplication.c
> @@ +861,3 @@
>   * recently-focused window within this application.
>   *
> + * Returns: (transfer none) (nullable): the active window
> 
> We usually also explain when/why the function may return NULL like in
> https://git.gnome.org/browse/gtk+/tree/gtk/gtkwindow.c#n2789

Makes sense, updated with that.
Comment 5 Matthias Clasen 2017-07-13 21:39:52 UTC
Review of attachment 355546 [details] [review]:

looks fine to me
Comment 6 Arun Raghavan 2017-07-17 05:58:04 UTC
Thanks for the reviews. Just as an FYI, I don't have seem to have git access to GNOME repos any more, so someone will need to push these out for me.
Comment 7 Matthias Clasen 2017-07-18 18:04:26 UTC
Attachment 355546 [details] pushed as 4b1853b - gtkapplication: Mark gtk_application_get_active_window() as nullable