1 /* 2 * Copyright (c) 2020 Alexander Mikhaylenko <alexm@gnome.org> 3 * 4 * This program is free software; you can redistribute it and/or modify 5 * it under the terms of the GNU Lesser General Public License as published by 6 * the Free Software Foundation; either version 2 of the License, or (at your 7 * option) any later version. 8 * 9 * This program is distributed in the hope that it will be useful, but 10 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 11 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public 12 * License for more details. 13 * 14 * You should have received a copy of the GNU Lesser General Public License 15 * along with this program; if not, write to the Free Software Foundation, 16 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 17 */ 18 19 #pragma once 20 21 #if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) 22 #error "Only <gtk/gtk.h> can be included directly." 23 #endif 24 25 #include <gtk/gtkwidget.h> 26 27 G_BEGIN_DECLS 28 29 #define GTK_TYPE_WINDOW_HANDLE (gtk_window_handle_get_type ()) 30 31 GDK_AVAILABLE_IN_ALL 32 G_DECLARE_FINAL_TYPE (GtkWindowHandle, gtk_window_handle, GTK, WINDOW_HANDLE, GtkWidget) 33 34 GDK_AVAILABLE_IN_ALL 35 GtkWidget * gtk_window_handle_new (void); 36 37 GDK_AVAILABLE_IN_ALL 38 GtkWidget * gtk_window_handle_get_child (GtkWindowHandle *self); 39 40 GDK_AVAILABLE_IN_ALL 41 void gtk_window_handle_set_child (GtkWindowHandle *self, 42 GtkWidget *child); 43 44 G_END_DECLS 45