2
* Copyright (C) 2012 Jonathan Matthew <jonathan@d14n.org>
4
* This program is free software; you can redistribute it and/or modify
5
* it under the terms of the GNU General Public License as published by
6
* the Free Software Foundation; either version 2 of the License, or
7
* (at your option) any later version.
9
* The Rhythmbox authors hereby grant permission for non-GPL compatible
10
* GStreamer plugins to be used and distributed together with GStreamer
11
* and Rhythmbox. This permission is above and beyond the permissions granted
12
* by the GPL license by which Rhythmbox is covered. If you modify this code
13
* you may extend this exception to your version of the code, but you are not
14
* obligated to do so. If you do not wish to do so, delete this exception
15
* statement from your version.
17
* This program is distributed in the hope that it will be useful,
18
* but WITHOUT ANY WARRANTY; without even the implied warranty of
19
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20
* GNU General Public License for more details.
22
* You should have received a copy of the GNU General Public License
23
* along with this program; if not, write to the Free Software
24
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
30
#ifndef RB_APPLICATION_H
31
#define RB_APPLICATION_H
33
#define RB_TYPE_APPLICATION (rb_application_get_type ())
34
#define RB_APPLICATION(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), RB_TYPE_APPLICATION, RBApplication))
35
#define RB_APPLICATION_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), RB_TYPE_APPLICATION, RBApplicationClass))
36
#define RB_IS_APPLICATION(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), RB_TYPE_APPLICATION))
37
#define RB_IS_APPLICATION_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), RB_TYPE_APPLICATION))
38
#define RB_APPLICATION_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), RB_TYPE_APPLICATION, RBApplicationClass))
40
typedef struct _RBApplication RBApplication;
41
typedef struct _RBApplicationClass RBApplicationClass;
42
typedef struct _RBApplicationPrivate RBApplicationPrivate;
46
GtkApplication parent;
48
RBApplicationPrivate *priv;
51
struct _RBApplicationClass
53
GtkApplicationClass parent_class;
56
GType rb_application_get_type (void);
58
GApplication * rb_application_new (void);
60
int rb_application_run (RBApplication *app, int argc, char **argv);
62
void rb_application_link_shared_menus (RBApplication *app, GMenu *menu);
63
void rb_application_set_menu_accelerators (RBApplication *app, GMenuModel *menu, gboolean enable);
65
void rb_application_add_shared_menu (RBApplication *app, const char *name, GMenuModel *menu);
66
GMenuModel * rb_application_get_shared_menu (RBApplication *app, const char *name);
68
GMenuModel * rb_application_get_plugin_menu (RBApplication *app, const char *menu);
69
void rb_application_add_plugin_menu_item (RBApplication *app, const char *menu, const char *id, GMenuItem *item);
70
void rb_application_remove_plugin_menu_item (RBApplication *app, const char *menu, const char *id);
74
#endif /* RB_APPLICATION_H */