ardour
application.cc
Go to the documentation of this file.
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 #include <gtkmm/menushell.h>
25 #include <gtkmm/menuitem.h>
26 
27 #include "gtkmm2ext/application.h"
29 
30 using namespace Gtk;
31 using namespace Gtkmm2ext;
32 
33 Application* Application::_instance = 0;
34 
36 Application::instance ()
37 {
38  if (!_instance) {
39  _instance = new Application;
40  }
41  return _instance;
42 }
43 
44 Application::Application ()
45 {
47 }
48 
49 Application::~Application ()
50 {
51  _instance = 0;
53 }
54 
55 void
56 Application::ready ()
57 {
59 }
60 
61 void
63 {
65 }
66 
67 void
68 Application::set_menu_bar (MenuShell& shell)
69 {
70  gtk_application_set_menu_bar (shell.gobj());
71 }
72 
74 Application::add_app_menu_group ()
75 {
77 }
78 
79 void
80 Application::add_app_menu_item (GtkApplicationMenuGroup* group,
81  MenuItem* item)
82 {
83  gtk_application_add_app_menu_item (group, item->gobj());
84 }
GtkApplicationMenuGroup * gtk_application_add_app_menu_group(void)
void gtk_application_ready()
Definition: ardour_ui.h:130
void gtk_application_cleanup()
void gtk_application_set_menu_bar(GtkMenuShell *menu_shell)
int gtk_application_init()
typedefG_BEGIN_DECLS struct _GtkApplicationMenuGroup GtkApplicationMenuGroup
LIBARDOUR_API void cleanup()
Definition: globals.cc:502
void gtk_application_add_app_menu_item(GtkApplicationMenuGroup *group, GtkMenuItem *menu_item)