Commit 36a1802d authored by Luis Medinas's avatar Luis Medinas Committed by Luis Medinas

Added help docs to the tree imported from ubuntu-doc team bzr tree. Thanks

2008-05-01  Luis Medinas  <lmedinas@svn.gnome.org>

        * configure.in:
        * help/C/Makefile.am:
        * help/C/brasero.xml:
        * help/C/legal.xml:
        * help/Makefile.am:
        * help/brasero.omf.in:
        * src/brasero-menu.h:
        * src/main.c (on_help_cb):

        Added help docs to the tree imported from ubuntu-doc team bzr tree.
        Thanks to Milo Casagrande and Phil Bull for the docs you rock!


svn path=/trunk/; revision=785
parent 604f4905
2008-05-01 Luis Medinas <lmedinas@svn.gnome.org>
* configure.in:
* help/C/Makefile.am:
* help/C/brasero.xml:
* help/C/legal.xml:
* help/Makefile.am:
* help/brasero.omf.in:
* src/brasero-menu.h:
* src/main.c (on_help_cb):
Added help docs to the tree imported from ubuntu-doc team bzr tree.
Thanks to Milo Casagrande and Phil Bull for the docs you rock!
2008-04-30 Philippe Rouquier <algernon@localhost.localdomain>
Adds mass file renaming to data project
......
......@@ -37,6 +37,26 @@ dnl ** reminder: the following set CFLAGS to -O2 -g if empty
AC_PROG_CC
AM_PROG_CC_STDC
AC_HEADER_STDC
dnl Set PACKAGE_DATA_DIR in config.h.
if test "x${datadir}" = 'x${prefix}/share'; then
if test "x${prefix}" = "xNONE"; then
AC_DEFINE_UNQUOTED([PACKAGE_DATA_DIR], "${ac_default_prefix}/share/${PACKAGE}", [Define the PACKAGE_DATA_DIR.])
else
AC_DEFINE_UNQUOTED([PACKAGE_DATA_DIR], "${prefix}/share/${PACKAGE}", [Define the PACKAGE_DATA_DIR.])
fi
elif test "x${datadir}" = 'x${datarootdir}'; then
if test "x${datarootdir}" = 'x${prefix}/share'; then
if test "x${prefix}" = "xNONE"; then
AC_DEFINE_UNQUOTED([PACKAGE_DATA_DIR], "${ac_default_prefix}/share/${PACKAGE}", [Define the PACKAGE_DATA_DIR.])
else
AC_DEFINE_UNQUOTED([PACKAGE_DATA_DIR], "${prefix}/share/${PACKAGE}", [Define the PACKAGE_DATA_DIR.])
fi
else
AC_DEFINE_UNQUOTED([PACKAGE_DATA_DIR], "${datarootdir}/${PACKAGE}", [Define the PACKAGE_DATA_DIR.])
fi
else
AC_DEFINE_UNQUOTED([PACKAGE_DATA_DIR], "${datadir}/${PACKAGE}", [Define the PACKAGE_DATA_DIR.])
fi
dnl ***************** SCSI related *****************************
AC_SUBST(BRASERO_SCSI_LIBS)
......@@ -75,6 +95,7 @@ GSTREAMER_REQUIRED=0.10.6
GSTREAMER_BASE_REQUIRED=0.10.0
LIBXML2_REQUIRED=2.6.0
HAL_REQUIRED=0.5
GNOME_DOC_INIT
dnl ** used by brasero and one plugin
PKG_CHECK_MODULES(BRASERO_GSTREAMER, \
......@@ -324,6 +345,7 @@ docs/Makefile
data/Makefile
data/brasero.desktop.in
data/icons/Makefile
help/Makefile
src/plugins/Makefile
src/plugins/cdrdao/Makefile
src/plugins/cdrkit/Makefile
......
## arch-tag: Automake rules for English help files
figdir = figures
docname = brasero
lang = C
omffile = brasero-C.omf
entities = legal.xml
authors.xml: $(top_srcdir)/AUTHORS $(top_srcdir)/MAINTAINERS $(top_srcdir)/DOCUMENTERS
(echo '<?xml version="1.0" encoding="UTF-8"?>'; \
echo '<sect2 id="authors">'; \
echo '<title>Authors</title>'; \
echo '<sect3>'; \
echo '<title>Lead Developers:</title>'; \
echo '<para><simplelist>') > $@.tmp
sed -e 's/>/<\/email><\/member>/' -e 's/ </ <email>/' -e 's/^/<member>/' < $(top_srcdir)/MAINTAINERS >> $@.tmp
(echo '</simplelist></para></sect3><sect3>'; \
echo '<title>Contributors</title>'; \
echo '<para><simplelist>') >> $@.tmp
sed -e 's/>/<\/email><\/member>/' -e 's/ </ <email>/' -e 's/^/<member>/' < $(top_srcdir)/AUTHORS >> $@.tmp
(echo '</simplelist></para></sect3>'; \
echo '<sect3><title>Documentation</title>'; \
echo '<para><simplelist>') >> $@.tmp
sed -e 's/>/<\/email><\/member>/' -e 's/ </ <email>/' -e 's/^/<member>/' < $(top_srcdir)/DOCUMENTERS >> $@.tmp
(echo '</simplelist></para></sect3>'; \
echo '</sect2>') >> $@.tmp
mv $@.tmp $@
all-am: authors.xml
include $(top_srcdir)/xmldocs.make
CLEANFILES += authors.xml
dist-hook: app-dist-hook
This diff is collapsed.
<legalnotice id="legalnotice">
<para>
Permission is granted to copy, distribute and/or modify this
document under the terms of the GNU Free Documentation
License (GFDL), Version 1.1 or any later version published
by the Free Software Foundation with no Invariant Sections,
no Front-Cover Texts, and no Back-Cover Texts. You can find
a copy of the GFDL at this <ulink type="help"
url="ghelp:fdl">link</ulink> or in the file COPYING-DOCS
distributed with this manual.
</para>
<para> This manual is part of a collection of GNOME manuals
distributed under the GFDL. If you want to distribute this
manual separately from the collection, you can do so by
adding a copy of the license to the manual, as described in
section 6 of the license.
</para>
<para>
Many of the names used by companies to distinguish their
products and services are claimed as trademarks. Where those
names appear in any GNOME documentation, and the members of
the GNOME Documentation Project are made aware of those
trademarks, then the names are in capital letters or initial
capital letters.
</para>
<para>
DOCUMENT AND MODIFIED VERSIONS OF THE DOCUMENT ARE PROVIDED
UNDER THE TERMS OF THE GNU FREE DOCUMENTATION LICENSE
WITH THE FURTHER UNDERSTANDING THAT:
<orderedlist>
<listitem>
<para>DOCUMENT IS PROVIDED ON AN "AS IS" BASIS,
WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR
IMPLIED, INCLUDING, WITHOUT LIMITATION, WARRANTIES
THAT THE DOCUMENT OR MODIFIED VERSION OF THE
DOCUMENT IS FREE OF DEFECTS MERCHANTABLE, FIT FOR
A PARTICULAR PURPOSE OR NON-INFRINGING. THE ENTIRE
RISK AS TO THE QUALITY, ACCURACY, AND PERFORMANCE
OF THE DOCUMENT OR MODIFIED VERSION OF THE
DOCUMENT IS WITH YOU. SHOULD ANY DOCUMENT OR
MODIFIED VERSION PROVE DEFECTIVE IN ANY RESPECT,
YOU (NOT THE INITIAL WRITER, AUTHOR OR ANY
CONTRIBUTOR) ASSUME THE COST OF ANY NECESSARY
SERVICING, REPAIR OR CORRECTION. THIS DISCLAIMER
OF WARRANTY CONSTITUTES AN ESSENTIAL PART OF THIS
LICENSE. NO USE OF ANY DOCUMENT OR MODIFIED
VERSION OF THE DOCUMENT IS AUTHORIZED HEREUNDER
EXCEPT UNDER THIS DISCLAIMER; AND
</para>
</listitem>
<listitem>
<para>UNDER NO CIRCUMSTANCES AND UNDER NO LEGAL
THEORY, WHETHER IN TORT (INCLUDING NEGLIGENCE),
CONTRACT, OR OTHERWISE, SHALL THE AUTHOR,
INITIAL WRITER, ANY CONTRIBUTOR, OR ANY
DISTRIBUTOR OF THE DOCUMENT OR MODIFIED VERSION
OF THE DOCUMENT, OR ANY SUPPLIER OF ANY OF SUCH
PARTIES, BE LIABLE TO ANY PERSON FOR ANY
DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR
CONSEQUENTIAL DAMAGES OF ANY CHARACTER
INCLUDING, WITHOUT LIMITATION, DAMAGES FOR LOSS
OF GOODWILL, WORK STOPPAGE, COMPUTER FAILURE OR
MALFUNCTION, OR ANY AND ALL OTHER DAMAGES OR
LOSSES ARISING OUT OF OR RELATING TO USE OF THE
DOCUMENT AND MODIFIED VERSIONS OF THE DOCUMENT,
EVEN IF SUCH PARTY SHALL HAVE BEEN INFORMED OF
THE POSSIBILITY OF SUCH DAMAGES.
</para>
</listitem>
</orderedlist>
</para>
</legalnotice>
include $(top_srcdir)/gnome-doc-utils.make
dist-hook: doc-dist-hook
# Module name
DOC_MODULE = brasero
# Legal entity include
DOC_ENTITIES = legal.xml
# Othe includes
DOC_INCLUDES =
# List of figures to be included
DOC_FIGURES = figures/brasero_main.png
# List of translations
DOC_LINGUAS =
<?xml version="1.0" standalone="no"?>
<omf>
<resource>
<subject category="GNOME|Applications|Sound and Video"/>
<type>manual</type>
<relation seriesid="e598da9a-cac2-11dc-9a51-a5e81ce6f0a9"/>
<rights type="Creative Commons by Attribution-ShareAlike" license.version="2.5" holder="Phil Bull"/>
</resource>
</omf>
......@@ -51,6 +51,7 @@ void on_exit_cb (GtkAction *action, BraseroApp *app);
void on_burn_cb (GtkAction *action, BraseroApp *app);
void on_disc_info_cb (GtkAction *action, BraseroApp *app);
void on_about_cb (GtkAction *action, BraseroApp *app);
void on_help_cb (GtkAction *action, BraseroApp *app);
static GtkActionEntry entries[] = {
{"ProjectMenu", NULL, N_("_Project")},
......@@ -73,6 +74,9 @@ static GtkActionEntry entries[] = {
{"Exit", GTK_STOCK_QUIT, NULL, NULL,
N_("Exit the program"), G_CALLBACK (on_exit_cb)},
{"Contents", GTK_STOCK_HELP, NULL, NULL, N_("Contents"),
G_CALLBACK (on_help_cb)},
{"About", GTK_STOCK_ABOUT, NULL, NULL, N_("About"),
G_CALLBACK (on_about_cb)},
......
......@@ -317,6 +317,56 @@ on_about_cb (GtkAction *action, BraseroApp *app)
g_free (license);
}
void
on_help_cb (GtkAction *action, BraseroApp *app)
{
GError *error = NULL;
char *command;
const char *lang;
char *uri = NULL;
GdkScreen *gscreen;
int i;
const char * const * langs = g_get_language_names ();
for (i = 0; langs[i]; i++) {
lang = langs[i];
if (strchr (lang, '.')) {
continue;
}
uri = g_build_filename(PACKAGE_DATA_DIR,
"/gnome/help/brasero/",
lang,
"/brasero.xml",
NULL);
if (g_file_test (uri, G_FILE_TEST_EXISTS)) {
break;
}
}
command = g_strconcat ("gnome-open ghelp://", uri, NULL);
gscreen = gdk_screen_get_default();
gdk_spawn_command_line_on_screen (gscreen, command, &error);
if (error) {
GtkWidget *d;
d = gtk_message_dialog_new(NULL,
GTK_DIALOG_MODAL | GTK_DIALOG_DESTROY_WITH_PARENT,
GTK_MESSAGE_ERROR, GTK_BUTTONS_OK,
error->message);
gtk_dialog_run(GTK_DIALOG(d));
gtk_widget_destroy(d);
g_error_free(error);
error = NULL;
}
g_free (command);
g_free (uri);
}
static gboolean
on_window_state_changed_cb (GtkWidget *widget,
GdkEventWindowState *event,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment