globally remove all trailing whitespace from ardour code base.
[ardour.git] / libs / gtkmm2ext / gtkmm2ext / gtkapplication.h
1 /* GTK+ Integration with platform-specific application-wide features
2  * such as the OS X menubar and application delegate concepts.
3  *
4  * Copyright (C) 2007 Pioneer Research Center USA, Inc.
5  * Copyright (C) 2007 Imendio AB
6  * Copyright (C) 2009 Paul Davis
7  *
8  * This library is free software; you can redistribute it and/or
9  * modify it under the terms of the GNU Lesser General Public
10  * License as published by the Free Software Foundation; version 2.1
11  * of the License.
12  *
13  * This library is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
16  * Lesser General Public License for more details.
17  *
18  * You should have received a copy of the GNU Lesser General Public
19  * License along with this library; if not, write to the
20  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
21  * Boston, MA 02111-1307, USA.
22  */
23
24 #ifndef __GTK_APPLICATION_H__
25 #define __GTK_APPLICATION_H__
26
27 #include <gtk/gtk.h>
28
29 #include "gtkmm2ext/visibility.h"
30
31 G_BEGIN_DECLS
32
33 typedef struct _GtkApplicationMenuGroup GtkApplicationMenuGroup;
34
35 LIBGTKMM2EXT_API int  gtk_application_init (void);
36 LIBGTKMM2EXT_API void gtk_application_ready (void);
37 LIBGTKMM2EXT_API void gtk_application_hide (void);
38 LIBGTKMM2EXT_API void gtk_application_cleanup (void);
39
40 LIBGTKMM2EXT_API void                      gtk_application_set_menu_bar       (GtkMenuShell    *menu_shell);
41 LIBGTKMM2EXT_API GtkApplicationMenuGroup * gtk_application_add_app_menu_group (void);
42 LIBGTKMM2EXT_API void                      gtk_application_add_app_menu_item   (GtkApplicationMenuGroup *group,
43                                                                GtkMenuItem     *menu_item);
44
45 /* these are private but here until GtkApplication becomes a GtkObject with an interface */
46
47 LIBGTKMM2EXT_LOCAL extern GList *_gtk_application_menu_groups;
48
49 G_END_DECLS
50
51 #endif /* __GTK_APPLICATION_H__ */