summaryrefslogtreecommitdiff
path: root/gtk/gtktexthandle.c
diff options
context:
space:
mode:
authorJonas Ådahl <jadahl@gmail.com>2020-12-04 10:53:16 +0100
committerJonas Ådahl <jadahl@gmail.com>2020-12-07 20:37:29 +0100
commit517bc0db843238455ef138bc9fc89f836833388c (patch)
treed843f4020c15c03afcfda10f0c765a6cbac77212 /gtk/gtktexthandle.c
parent369b03a3d80760935d991828376c1dca7ac9a4a2 (diff)
downloadgtk+-517bc0db843238455ef138bc9fc89f836833388c.tar.gz
gtk/texthandle: Use gtk_text_handle_present() instead of GtkNative
Diffstat (limited to 'gtk/gtktexthandle.c')
-rw-r--r--gtk/gtktexthandle.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/gtk/gtktexthandle.c b/gtk/gtktexthandle.c
index 6d80068088..8d7deddb3e 100644
--- a/gtk/gtktexthandle.c
+++ b/gtk/gtktexthandle.c
@@ -167,8 +167,12 @@ gtk_text_handle_present_surface (GtkTextHandle *handle)
static void
gtk_text_handle_native_check_resize (GtkNative *native)
{
- GtkTextHandle *handle = GTK_TEXT_HANDLE (native);
- GtkWidget *widget = GTK_WIDGET (native);
+}
+
+void
+gtk_text_handle_present (GtkTextHandle *handle)
+{
+ GtkWidget *widget = GTK_WIDGET (handle);
if (!_gtk_widget_get_alloc_needed (widget))
gtk_widget_ensure_allocate (widget);