diff options
author | Jonas Ådahl <jadahl@gmail.com> | 2020-12-04 10:53:16 +0100 |
---|---|---|
committer | Jonas Ådahl <jadahl@gmail.com> | 2020-12-07 20:37:29 +0100 |
commit | 517bc0db843238455ef138bc9fc89f836833388c (patch) | |
tree | d843f4020c15c03afcfda10f0c765a6cbac77212 /gtk/gtktexthandle.c | |
parent | 369b03a3d80760935d991828376c1dca7ac9a4a2 (diff) | |
download | gtk+-517bc0db843238455ef138bc9fc89f836833388c.tar.gz |
gtk/texthandle: Use gtk_text_handle_present() instead of GtkNative
Diffstat (limited to 'gtk/gtktexthandle.c')
-rw-r--r-- | gtk/gtktexthandle.c | 8 |
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); |