Wed, 31 Dec 2014 06:55:50 +0100
Added tag UPSTREAM_283F7C6 for changeset ca08bd8f51b2
michael@0 | 1 | /* This Source Code Form is subject to the terms of the Mozilla Public |
michael@0 | 2 | * License, v. 2.0. If a copy of the MPL was not distributed with this |
michael@0 | 3 | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
michael@0 | 4 | |
michael@0 | 5 | #ifndef GTKWINDOW_WRAPPER_H |
michael@0 | 6 | #define GTKWINDOW_WRAPPER_H |
michael@0 | 7 | |
michael@0 | 8 | #define gtk_window_group_get_current_grab gtk_window_group_get_current_grab_ |
michael@0 | 9 | #include_next <gtk/gtkwindow.h> |
michael@0 | 10 | #undef gtk_window_group_get_current_grab |
michael@0 | 11 | |
michael@0 | 12 | static inline GtkWidget * |
michael@0 | 13 | gtk_window_group_get_current_grab(GtkWindowGroup *window_group) |
michael@0 | 14 | { |
michael@0 | 15 | if (!window_group->grabs) |
michael@0 | 16 | return NULL; |
michael@0 | 17 | |
michael@0 | 18 | return GTK_WIDGET(window_group->grabs->data); |
michael@0 | 19 | } |
michael@0 | 20 | #endif /* GTKWINDOW_WRAPPER_H */ |