[gtk/kill-hierarchy-changed: 4/14] xim: Stop using ::hierarchy-changed



commit 9591d40742c7c109ea11d1726dae284670026b03
Author: Matthias Clasen <mclasen redhat com>
Date:   Sat Feb 23 00:32:19 2019 -0500

    xim: Stop using ::hierarchy-changed
    
    Use notify::root instead.

 gtk/gtkimcontextxim.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkimcontextxim.c b/gtk/gtkimcontextxim.c
index 58f82d25e2..c93fcc34b2 100644
--- a/gtk/gtkimcontextxim.c
+++ b/gtk/gtkimcontextxim.c
@@ -1520,7 +1520,7 @@ update_in_toplevel (GtkIMContextXIM *context_xim)
  */
 static void
 on_client_widget_hierarchy_changed (GtkWidget       *widget,
-                                   GtkWidget       *old_toplevel,
+                                   GParamSpec      *pspec,
                                    GtkIMContextXIM *context_xim)
 {
   update_in_toplevel (context_xim);
@@ -1564,7 +1564,7 @@ update_client_widget (GtkIMContextXIM *context_xim)
       context_xim->client_widget = new_client_widget;
       if (context_xim->client_widget)
        {
-         g_signal_connect (context_xim->client_widget, "hierarchy-changed",
+         g_signal_connect (context_xim->client_widget, "notify::root",
                            G_CALLBACK (on_client_widget_hierarchy_changed),
                            context_xim);
        }


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