[gnome-logs] Replace toplevel with root
- From: David King <davidk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-logs] Replace toplevel with root
- Date: Mon, 28 Mar 2022 16:44:00 +0000 (UTC)
commit 37744bd216304a7e872e26e09cb1959504e7c44c
Author: Maximiliano Sandoval R <msandova gnome org>
Date: Mon Oct 11 10:19:46 2021 +0200
Replace toplevel with root
src/gl-eventviewlist.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/gl-eventviewlist.c b/src/gl-eventviewlist.c
index 72b4c8d..00e435e 100644
--- a/src/gl-eventviewlist.c
+++ b/src/gl-eventviewlist.c
@@ -879,14 +879,14 @@ on_search_bar_notify_search_mode_enabled (GtkSearchBar *search_bar,
gpointer user_data)
{
GAction *search;
- GtkWidget *toplevel;
+ GtkRoot *root;
GActionMap *appwindow;
- toplevel = gtk_widget_get_toplevel (GTK_WIDGET (user_data));
+ root = gtk_widget_get_root (GTK_WIDGET (user_data));
- if (gtk_widget_is_toplevel (toplevel))
+ if (G_IS_ACTION_MAP (root))
{
- appwindow = G_ACTION_MAP (toplevel);
+ appwindow = G_ACTION_MAP (root);
search = g_action_map_lookup_action (appwindow, "search");
}
else
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]