[gtksourceview] assistant: use gtk_widget_hide() instead of popover API



commit 0545d09c56203599e25c61ec5f4e899a7aace34f
Author: Christian Hergert <chergert redhat com>
Date:   Tue Aug 30 13:14:37 2022 -0700

    assistant: use gtk_widget_hide() instead of popover API
    
    We don't use gtk_popover_popup() anywhere else, so keep symmetry by using
    gtk_widget_hide() too. The only value right now that I see with the
    popover variant is that it could end up cascading to the root which
    isn't something we necessarily want.

 gtksourceview/gtksourceassistant.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gtksourceview/gtksourceassistant.c b/gtksourceview/gtksourceassistant.c
index fba05e2e..4f5bd323 100644
--- a/gtksourceview/gtksourceassistant.c
+++ b/gtksourceview/gtksourceassistant.c
@@ -58,7 +58,7 @@ _gtk_source_assistant_hide_action (GtkWidget   *widget,
 {
        g_assert (GTK_SOURCE_IS_ASSISTANT (widget));
 
-       gtk_popover_popdown (GTK_POPOVER (widget));
+       gtk_widget_hide (widget);
 }
 
 static void


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