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
This commit is contained in:
Matthias Clasen
2019-05-01 03:25:02 +00:00
parent 54e7a94d70
commit 1f30b7742b
2 changed files with 2 additions and 2 deletions

View File

@@ -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;

View File

@@ -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,