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.
This commit is contained in:
Carlos Garnacho 2017-03-31 17:16:47 +02:00
parent 799428aaea
commit f50875f8d0
2 changed files with 4 additions and 1 deletions

View File

@ -5649,7 +5649,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)
{

View File

@ -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