[gtksourceview: 1/2] gtk4: gtk_native_check_resize -> gtk_popover_present




commit f194345b023e97997e0eeede87050cb295db7a90
Author: Tristan Partin <tristan partin io>
Date:   Sat Dec 26 23:28:29 2020 -0600

    gtk4: gtk_native_check_resize -> gtk_popover_present
    
    GTK4 removed gtk_native_check_resize at the last second.

 gtksourceview/gtksourceassistant.c       | 4 ++--
 gtksourceview/gtksourceassistantchild.c  | 4 ++--
 gtksourceview/gtksourceview-assistants.c | 2 +-
 3 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/gtksourceview/gtksourceassistant.c b/gtksourceview/gtksourceassistant.c
index 3c7e383d..9e907d0c 100644
--- a/gtksourceview/gtksourceassistant.c
+++ b/gtksourceview/gtksourceassistant.c
@@ -126,7 +126,7 @@ _gtk_source_assistant_update_position (GtkSourceAssistant *assistant)
                gtk_popover_set_pointing_to (GTK_POPOVER (assistant), &rect);
        }
 
-       gtk_native_check_resize (GTK_NATIVE (assistant));
+       gtk_popover_present (GTK_POPOVER (assistant));
 
        if (priv->child != NULL)
        {
@@ -142,7 +142,7 @@ _gtk_source_assistant_update_position (GtkSourceAssistant *assistant)
 
                if (gtk_widget_get_visible (GTK_WIDGET (child)))
                {
-                       gtk_native_check_resize (GTK_NATIVE (child));
+                       gtk_popover_present (GTK_POPOVER (child));
                }
        }
 }
diff --git a/gtksourceview/gtksourceassistantchild.c b/gtksourceview/gtksourceassistantchild.c
index 1981d251..d7e51406 100644
--- a/gtksourceview/gtksourceassistantchild.c
+++ b/gtksourceview/gtksourceassistantchild.c
@@ -54,7 +54,7 @@ _gtk_source_assistant_child_size_allocate (GtkWidget *widget,
 
                if (gtk_widget_get_visible (GTK_WIDGET (attached)))
                {
-                       gtk_native_check_resize (GTK_NATIVE (attached));
+                       gtk_popover_present (GTK_POPOVER (attached));
                }
        }
 }
@@ -149,7 +149,7 @@ _gtk_source_assistant_child_attach (GtkSourceAssistantChild *self,
        {
                if (gtk_widget_get_visible (GTK_WIDGET (child)))
                {
-                       gtk_native_check_resize (GTK_NATIVE (child));
+                       gtk_popover_present (GTK_POPOVER (child));
                }
        }
 }
diff --git a/gtksourceview/gtksourceview-assistants.c b/gtksourceview/gtksourceview-assistants.c
index 0422edec..d32caa12 100644
--- a/gtksourceview/gtksourceview-assistants.c
+++ b/gtksourceview/gtksourceview-assistants.c
@@ -124,7 +124,7 @@ _gtk_source_view_assistants_size_allocate (GtkSourceViewAssistants *assistants,
                                             assistant_width,
                                             assistant_height);
 
-               gtk_native_check_resize (GTK_NATIVE (assistant));
+               gtk_popover_present (GTK_POPOVER (assistant));
        }
 }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]