[gtk+/wip/carlosg/event-delivery: 8/72] gtkwidget: Expose gtk_widget_common_ancestor()



commit f22a660f85383f679cb84913731909852e063d1a
Author: Carlos Garnacho <carlosg gnome org>
Date:   Fri Mar 31 17:16:47 2017 +0200

    gtkwidget: Expose gtk_widget_common_ancestor()
    
    This function will be useful in other places, such as determining the
    widgets that must receive crossing events after pointer picking points
    to another widget.

 gtk/gtkwidget.c        |    2 +-
 gtk/gtkwidgetprivate.h |    3 +++
 2 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c
index 2ed1038..b38882c 100644
--- a/gtk/gtkwidget.c
+++ b/gtk/gtkwidget.c
@@ -5575,7 +5575,7 @@ gtk_widget_size_allocate (GtkWidget       *widget,
  *   @widget_b or %NULL if @widget_a and @widget_b do not
  *   share a common ancestor.
  **/
-static GtkWidget *
+GtkWidget *
 gtk_widget_common_ancestor (GtkWidget *widget_a,
                            GtkWidget *widget_b)
 {
diff --git a/gtk/gtkwidgetprivate.h b/gtk/gtkwidgetprivate.h
index 9c89ca9..ff53920 100644
--- a/gtk/gtkwidgetprivate.h
+++ b/gtk/gtkwidgetprivate.h
@@ -313,6 +313,9 @@ gboolean          gtk_widget_focus_move                    (GtkWidget        *wi
                                                             GtkDirectionType  direction,
                                                             GPtrArray        *focus_order);
 
+GtkWidget *       gtk_widget_common_ancestor               (GtkWidget *widget_a,
+                                                            GtkWidget *widget_b);
+
 /* inline getters */
 
 static inline gboolean


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