2 * Copyright © 2011 Canonical Limited
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2 of the licence, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library. If not, see <http://www.gnu.org/licenses/>.
17 * Author: Ryan Lortie <desrt@desrt.ca>
20 #ifndef __GTK_APPLICATION_WINDOW_H__
21 #define __GTK_APPLICATION_WINDOW_H__
23 #include <gtk/gtkwindow.h>
27 #define GTK_TYPE_APPLICATION_WINDOW (gtk_application_window_get_type ())
28 #define GTK_APPLICATION_WINDOW(inst) (G_TYPE_CHECK_INSTANCE_CAST ((inst), \
29 GTK_TYPE_APPLICATION_WINDOW, GtkApplicationWindow))
30 #define GTK_APPLICATION_WINDOW_CLASS(class) (G_TYPE_CHECK_CLASS_CAST ((class), \
31 GTK_TYPE_APPLICATION_WINDOW, GtkApplicationWindowClass))
32 #define GTK_IS_APPLICATION_WINDOW(inst) (G_TYPE_CHECK_INSTANCE_TYPE ((inst), \
33 GTK_TYPE_APPLICATION_WINDOW))
34 #define GTK_IS_APPLICATION_WINDOW_CLASS(class) (G_TYPE_CHECK_CLASS_TYPE ((class), \
35 GTK_TYPE_APPLICATION_WINDOW))
36 #define GTK_APPLICATION_WINDOW_GET_CLASS(inst) (G_TYPE_INSTANCE_GET_CLASS ((inst), \
37 GTK_TYPE_APPLICATION_WINDOW, GtkApplicationWindowClass))
39 typedef struct _GtkApplicationWindowPrivate GtkApplicationWindowPrivate;
40 typedef struct _GtkApplicationWindowClass GtkApplicationWindowClass;
41 typedef struct _GtkApplicationWindow GtkApplicationWindow;
43 struct _GtkApplicationWindow
45 GtkWindow parent_instance;
48 GtkApplicationWindowPrivate *priv;
51 struct _GtkApplicationWindowClass
53 GtkWindowClass parent_class;
60 GType gtk_application_window_get_type (void) G_GNUC_CONST;
62 GtkWidget * gtk_application_window_new (GtkApplication *application);
65 void gtk_application_window_set_show_menubar (GtkApplicationWindow *window,
66 gboolean show_menubar);
68 gboolean gtk_application_window_get_show_menubar (GtkApplicationWindow *window);
71 guint gtk_application_window_get_id (GtkApplicationWindow *window);
75 #endif /* __GTK_APPLICATION_WINDOW_H__ */