mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 805753 - Gtk 2.10 compat layer misses gtk_widget_set_has_window r=roc
This commit is contained in:
parent
57ee1d4b4b
commit
56c13c2c52
@ -66,6 +66,12 @@ gtk_widget_has_grab(GtkWidget *widget)
|
||||
return GTK_WIDGET_HAS_GRAB(widget);
|
||||
}
|
||||
|
||||
static inline gboolean
|
||||
gtk_widget_get_has_window(GtkWidget *widget)
|
||||
{
|
||||
return !GTK_WIDGET_NO_WINDOW(widget);
|
||||
}
|
||||
|
||||
static inline void
|
||||
gtk_widget_get_allocation(GtkWidget *widget, GtkAllocation *allocation)
|
||||
{
|
||||
@ -87,6 +93,15 @@ gtk_widget_set_can_focus(GtkWidget *widget, gboolean can_focus)
|
||||
GTK_WIDGET_UNSET_FLAGS (widget, GTK_CAN_FOCUS);
|
||||
}
|
||||
|
||||
static inline void
|
||||
gtk_widget_set_has_window(GtkWidget *widget, gboolean has_window)
|
||||
{
|
||||
if (has_window)
|
||||
GTK_WIDGET_UNSET_FLAGS (widget, GTK_NO_WINDOW);
|
||||
else
|
||||
GTK_WIDGET_SET_FLAGS (widget, GTK_NO_WINDOW);
|
||||
}
|
||||
|
||||
static inline void
|
||||
gtk_widget_set_window(GtkWidget *widget, GdkWindow *window)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user