mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-04 09:40:19 +00:00
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:
parent
799428aaea
commit
f50875f8d0
@ -5649,7 +5649,7 @@ gtk_widget_size_allocate (GtkWidget *widget,
|
|||||||
* @widget_b or %NULL if @widget_a and @widget_b do not
|
* @widget_b or %NULL if @widget_a and @widget_b do not
|
||||||
* share a common ancestor.
|
* share a common ancestor.
|
||||||
**/
|
**/
|
||||||
static GtkWidget *
|
GtkWidget *
|
||||||
gtk_widget_common_ancestor (GtkWidget *widget_a,
|
gtk_widget_common_ancestor (GtkWidget *widget_a,
|
||||||
GtkWidget *widget_b)
|
GtkWidget *widget_b)
|
||||||
{
|
{
|
||||||
|
@ -313,6 +313,9 @@ gboolean gtk_widget_focus_move (GtkWidget *wi
|
|||||||
GtkDirectionType direction,
|
GtkDirectionType direction,
|
||||||
GPtrArray *focus_order);
|
GPtrArray *focus_order);
|
||||||
|
|
||||||
|
GtkWidget * gtk_widget_common_ancestor (GtkWidget *widget_a,
|
||||||
|
GtkWidget *widget_b);
|
||||||
|
|
||||||
/* inline getters */
|
/* inline getters */
|
||||||
|
|
||||||
static inline gboolean
|
static inline gboolean
|
||||||
|
Loading…
Reference in New Issue
Block a user