[gtk/bilelmoussaoui/g-i-2: 1/5] gtk: mark Image constructors as not nullable
- From: Bilal Elmoussaoui <bilelmoussaoui src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/bilelmoussaoui/g-i-2: 1/5] gtk: mark Image constructors as not nullable
- Date: Sat, 1 Jan 2022 20:36:53 +0000 (UTC)
commit aff42eea4696e8bf5f7196e421eddf7974093d52
Author: Bilal Elmoussaoui <bil elmoussaoui gmail com>
Date: Sat Jan 1 21:27:58 2022 +0100
gtk: mark Image constructors as not nullable
There's already a gtk_image_new that doesn't take any param
which could be used to create an empty image
gtk/gtkimage.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gtk/gtkimage.c b/gtk/gtkimage.c
index 6f82934e0c..582b0eaad0 100644
--- a/gtk/gtkimage.c
+++ b/gtk/gtkimage.c
@@ -477,7 +477,7 @@ gtk_image_new_from_resource (const char *resource_path)
/**
* gtk_image_new_from_pixbuf:
- * @pixbuf: (nullable): a `GdkPixbuf`
+ * @pixbuf: a `GdkPixbuf`
*
* Creates a new `GtkImage` displaying @pixbuf.
*
@@ -508,7 +508,7 @@ gtk_image_new_from_pixbuf (GdkPixbuf *pixbuf)
/**
* gtk_image_new_from_paintable:
- * @paintable: (nullable): a `GdkPaintable`
+ * @paintable: a `GdkPaintable`
*
* Creates a new `GtkImage` displaying @paintable.
*
@@ -535,7 +535,7 @@ gtk_image_new_from_paintable (GdkPaintable *paintable)
/**
* gtk_image_new_from_icon_name:
- * @icon_name: (nullable): an icon name
+ * @icon_name: an icon name
*
* Creates a `GtkImage` displaying an icon from the current icon theme.
*
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]