summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2019-05-01 03:25:02 +0000
committerMatthias Clasen <mclasen@redhat.com>2019-05-01 03:25:29 +0000
commit1f30b7742b3332825db4e2eab7c70d45a7424fea (patch)
treefbeaf7ee4e181189e0a4cb107fdbaa52382f2ed3
parent54e7a94d7005ed8da0707154d3606dec96732ac9 (diff)
downloadgtk+-1f30b7742b3332825db4e2eab7c70d45a7424fea.tar.gz
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
-rw-r--r--gtk/gtktextutil.c2
-rw-r--r--gtk/gtktextutil.h2
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,