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:
@@ -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;
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user