2
* This program is free software; you can redistribute it and/or modify
3
* it under the terms of the GNU General Public License as published by
4
* the Free Software Foundation; either version 2 of the License, or
5
* (at your option) any later version.
7
* This program is distributed in the hope that it will be useful,
8
* but WITHOUT ANY WARRANTY; without even the implied warranty of
9
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10
* GNU Library General Public License for more details.
12
* You should have received a copy of the GNU General Public License
13
* along with this program; if not, write to the Free Software
14
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
17
/***************************************************************************
20
* Sat Jun 11 12:00:29 2005
21
* Copyright 2005 Philippe Rouquier
22
* <brasero-app@wanadoo.fr>
23
****************************************************************************/
35
#include <glib/gi18n-lib.h>
37
#include <gtk/gtkstock.h>
38
#include <gtk/gtkaction.h>
39
#include <gtk/gtktoggleaction.h>
41
#include "brasero-utils.h"
42
#include "brasero-app.h"
44
void on_prefs_cb (GtkAction *action, BraseroApp *app);
45
void on_eject_cb (GtkAction *action, BraseroApp *app);
46
void on_erase_cb (GtkAction *action, BraseroApp *app);
47
void on_integrity_check_cb (GtkAction *action, BraseroApp *app);
49
void on_exit_cb (GtkAction *action, BraseroApp *app);
51
void on_burn_cb (GtkAction *action, BraseroApp *app);
52
void on_disc_info_cb (GtkAction *action, BraseroApp *app);
53
void on_about_cb (GtkAction *action, BraseroApp *app);
54
void on_help_cb (GtkAction *action, BraseroApp *app);
56
static GtkActionEntry entries[] = {
57
{"ProjectMenu", NULL, N_("_Project")},
58
{"ViewMenu", NULL, N_("_View")},
59
{"EditMenu", NULL, N_("_Edit")},
60
{"ToolMenu", NULL, N_("_Tools")},
61
{"HelpMenu", NULL, N_("_Help")},
63
{"Plugins", NULL, N_("P_lugins"), NULL,
64
N_("Choose plugins for brasero"), G_CALLBACK (on_prefs_cb)},
66
{"Eject", "media-eject", N_("E_ject"), NULL,
67
N_("Eject media"), G_CALLBACK (on_eject_cb)},
69
{"Erase", "media-optical-blank", N_("_Erase..."), NULL,
70
N_("Erase a disc"), G_CALLBACK (on_erase_cb)},
72
{"Check", GTK_STOCK_FIND, N_("_Check Integrity..."), NULL,
73
N_("Check data integrity of disc"), G_CALLBACK (on_integrity_check_cb)},
75
{"Exit", GTK_STOCK_QUIT, NULL, NULL,
76
N_("Exit the program"), G_CALLBACK (on_exit_cb)},
78
{"Contents", GTK_STOCK_HELP, N_("_Contents"), "F1", N_("Contents"),
79
G_CALLBACK (on_help_cb)},
81
{"About", GTK_STOCK_ABOUT, NULL, NULL, N_("About"),
82
G_CALLBACK (on_about_cb)},
84
{"DiscInfo", GTK_STOCK_CDROM, N_("_Disc Info"), NULL,
85
N_("Display information on blank discs currently inserted"),
86
G_CALLBACK (on_disc_info_cb)},
90
static const gchar *description = {
92
"<menubar name='menubar' >"
93
"<menu action='ProjectMenu'>"
94
"<placeholder name='ProjectPlaceholder'/>"
96
"<menuitem action='Exit'/>"
98
"<menu action='EditMenu'>"
99
"<placeholder name='EditPlaceholder'/>"
101
"<menuitem action='Plugins'/>"
103
"<menu action='ViewMenu'>"
104
"<placeholder name='ViewPlaceholder'/>"
106
"<menu action='ToolMenu'>"
107
"<placeholder name='DiscPlaceholder'/>"
108
"<menuitem action='Eject'/>"
109
"<menuitem action='Erase'/>"
110
"<menuitem action='Check'/>"
112
"<menu action='HelpMenu'>"
113
"<menuitem action='Contents'/>"
115
"<menuitem action='About'/>"