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



commit 4f91039e831885547480e6b99411baf3c7215622
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 eb3761a..0f8e74a 100644
--- a/gtk/gtkwidget.c
+++ b/gtk/gtkwidget.c
@@ -5572,7 +5572,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 f46fafa..d33a5e5 100644
--- a/gtk/gtkwidgetprivate.h
+++ b/gtk/gtkwidgetprivate.h
@@ -314,6 +314,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]