summaryrefslogtreecommitdiff
path: root/gtk/gtkapplicationwindow.h
diff options
context:
space:
mode:
authorRyan Lortie <desrt@desrt.ca>2011-11-30 09:34:29 -0500
committerRyan Lortie <desrt@desrt.ca>2011-12-19 12:51:08 -0500
commita93b9dd1cbdf84c7340bf533b721d6c8d83e93f0 (patch)
tree3e38cde74b5b77067309313693422631076f7f7b /gtk/gtkapplicationwindow.h
parente7ad2f97c8aaf23a599c970df4fd9eda0ce2df33 (diff)
downloadgtk+-a93b9dd1cbdf84c7340bf533b721d6c8d83e93f0.tar.gz
add GtkApplicationWindow
This is a GtkWindow subclass that "application windows" will use. Each is associated with a GtkApplication, has the ability to show menus and will have its own associated set of actions.
Diffstat (limited to 'gtk/gtkapplicationwindow.h')
-rw-r--r--gtk/gtkapplicationwindow.h75
1 files changed, 75 insertions, 0 deletions
diff --git a/gtk/gtkapplicationwindow.h b/gtk/gtkapplicationwindow.h
new file mode 100644
index 0000000000..14ae91c263
--- /dev/null
+++ b/gtk/gtkapplicationwindow.h
@@ -0,0 +1,75 @@
+/*
+ * Copyright © 2011 Canonical Limited
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the licence, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the
+ * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
+ *
+ * Author: Ryan Lortie <desrt@desrt.ca>
+ */
+
+#ifndef __GTK_APPLICATION_WINDOW_H__
+#define __GTK_APPLICATION_WINDOW_H__
+
+#include <gtk/gtkwindow.h>
+
+G_BEGIN_DECLS
+
+#define GTK_TYPE_APPLICATION_WINDOW (gtk_application_window_get_type ())
+#define GTK_APPLICATION_WINDOW(inst) (G_TYPE_CHECK_INSTANCE_CAST ((inst), \
+ GTK_TYPE_APPLICATION_WINDOW, GtkApplicationWindow))
+#define GTK_APPLICATION_WINDOW_CLASS(class) (G_TYPE_CHECK_CLASS_CAST ((class), \
+ GTK_TYPE_APPLICATION_WINDOW, GtkApplicationWindowClass))
+#define GTK_IS_APPLICATION_WINDOW(inst) (G_TYPE_CHECK_INSTANCE_TYPE ((inst), \
+ GTK_TYPE_APPLICATION_WINDOW))
+#define GTK_IS_APPLICATION_WINDOW_CLASS(class) (G_TYPE_CHECK_CLASS_TYPE ((class), \
+ GTK_TYPE_APPLICATION_WINDOW))
+#define GTK_APPLICATION_WINDOW_GET_CLASS(inst) (G_TYPE_INSTANCE_GET_CLASS ((inst), \
+ GTK_TYPE_APPLICATION_WINDOW, GtkApplicationWindowClass))
+
+typedef struct _GtkApplicationWindowPrivate GtkApplicationWindowPrivate;
+typedef struct _GtkApplicationWindowClass GtkApplicationWindowClass;
+typedef struct _GtkApplicationWindow GtkApplicationWindow;
+
+struct _GtkApplicationWindow
+{
+ GtkWindow parent_instance;
+
+ /*< private >*/
+ GtkApplicationWindowPrivate *priv;
+};
+
+struct _GtkApplicationWindowClass
+{
+ GtkWindowClass parent_class;
+
+ /*< private >*/
+ gpointer padding[14];
+};
+
+GType gtk_application_window_get_type (void) G_GNUC_CONST;
+GtkWidget * gtk_application_window_new (GtkApplication *application);
+
+void gtk_application_window_add_action (GtkApplicationWindow *window,
+ GAction *action);
+
+void gtk_application_window_set_show_app_menu (GtkApplicationWindow *window,
+ gboolean show_app_menu);
+gboolean gtk_application_window_get_show_app_menu (GtkApplicationWindow *window);
+
+GtkWidget * gtk_application_window_get_app_menu (GtkApplicationWindow *window);
+
+G_END_DECLS
+
+#endif /* __GTK_APPLICATION_WINDOW_H__ */