[gtk/minus-one: 2/2] textutil: Fix signedness issues in api



commit 1f30b7742b3332825db4e2eab7c70d45a7424fea
Author: Matthias Clasen <mclasen redhat com>
Date:   Wed May 1 03:25:02 2019 +0000

    textutil: Fix signedness issues in api
    
    A length argument that can be -1 should be signed.
    
    Closes: https://gitlab.gnome.org/GNOME/gtk/issues/1555

 gtk/gtktextutil.c | 2 +-
 gtk/gtktextutil.h | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtktextutil.c b/gtk/gtktextutil.c
index bafe97552e..19c2f7982d 100644
--- a/gtk/gtktextutil.c
+++ b/gtk/gtktextutil.c
@@ -201,7 +201,7 @@ limit_layout_lines (PangoLayout *layout)
 GdkPaintable *
 gtk_text_util_create_drag_icon (GtkWidget *widget,
                                 gchar     *text,
-                                gsize      len)
+                                gssize     len)
 {
   GtkStyleContext *style_context;
   GtkSnapshot *snapshot;
diff --git a/gtk/gtktextutil.h b/gtk/gtktextutil.h
index a657e586ce..450ed464a1 100644
--- a/gtk/gtktextutil.h
+++ b/gtk/gtktextutil.h
@@ -40,7 +40,7 @@ void _gtk_text_util_append_special_char_menuitems (GtkMenuShell              *me
 
 GdkPaintable *    gtk_text_util_create_drag_icon  (GtkWidget     *widget,
                                                    gchar         *text,
-                                                   gsize          len);
+                                                   gssize         len);
 GdkPaintable *    gtk_text_util_create_rich_drag_icon (GtkWidget     *widget,
                                                    GtkTextBuffer *buffer,
                                                    GtkTextIter   *start,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]