~ubuntu-branches/debian/jessie/cheese/jessie

« back to all changes in this revision

Viewing changes to src/cheese-commands-help.c

  • Committer: Bazaar Package Importer
  • Author(s): Michael Biebl
  • Date: 2010-05-04 17:37:18 UTC
  • mfrom: (1.1.13 upstream)
  • Revision ID: james.westby@ubuntu.com-20100504173718-k2rx3nryi4vd0xyx
Tags: 2.30.1-1
* New upstream release.
  - HAL dependency has been dropped. Use (g)udev for v4l capability probing
    on Linux. Closes: #573774
  - Split code into separate libraries.
* debian/control.in
  - Drop Build-Depends on libhal-dev.
  - Drop Build-Depends on libebook1.2-dev.
  - Bump Build-Depends on libgtk2.0-dev to (>= 2.19.1).
  - Bump Build-Depends on libgstreamer*-dev to (>= 0.10.23).
  - Add Build-Depends on libcanberra-gtk-dev.
  - Add Build-Depends on libxtst-dev.
  - Add Build-Depends on libgudev-1.0-dev on Linux.
  - Bump Standards-Version to 3.8.4. No further changes.
* Switch to source format 3.0 (quilt)
  - Add debian/source/format.
* debian/rules
  - Drop lpia specific configure flags, lpia is dead.
* Update package layout (based on work by Ubuntu)
  - Move data files into new cheese-common package.
  - Keep binary along with its desktop and dbus service file in the cheese
    package.
  - Add libcheese-gtk18 and libcheese-gtk-dev package for the new
    libcheese-gtk library. Use a symbols file for improved shlibs
    dependencies.
  - Add Conflicts/Replaces to cheese-common to ensure proper upgrades from
    previous versions.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Copyright © 2010 Filippo Argiolas <filippo.argiolas@gmail.com>
 
3
 * Copyright © 2007,2008 daniel g. siegel <dgsiegel@gnome.org>
 
4
 * Copyright © 2007,2008 Jaap Haitsma <jaap@haitsma.org>
 
5
 *
 
6
 * Licensed under the GNU General Public License Version 2
 
7
 *
 
8
 * This program is free software; you can redistribute it and/or modify
 
9
 * it under the terms of the GNU General Public License as published by
 
10
 * the Free Software Foundation; either version 2 of the License, or
 
11
 * (at your option) any later version.
 
12
 *
 
13
 * This program 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
 
16
 * GNU General Public License for more details.
 
17
 *
 
18
 * You should have received a copy of the GNU General Public License
 
19
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
20
 */
 
21
 
 
22
#include "cheese-commands.h"
 
23
 
 
24
void
 
25
cheese_cmd_help_contents (GtkAction *action, CheeseWindow *cheese_window)
 
26
{
 
27
  GError    *error = NULL;
 
28
  GdkScreen *screen;
 
29
 
 
30
  screen = gtk_widget_get_screen (GTK_WIDGET (cheese_window));
 
31
  gtk_show_uri (screen, "ghelp:cheese", gtk_get_current_event_time (), &error);
 
32
 
 
33
  if (error != NULL)
 
34
  {
 
35
    GtkWidget *d;
 
36
    d = gtk_message_dialog_new (GTK_WINDOW (cheese_window),
 
37
                                GTK_DIALOG_MODAL | GTK_DIALOG_DESTROY_WITH_PARENT,
 
38
                                GTK_MESSAGE_ERROR, GTK_BUTTONS_CLOSE,
 
39
                                _("Unable to open help file for Cheese"));
 
40
    gtk_dialog_run (GTK_DIALOG (d));
 
41
    gtk_widget_destroy (d);
 
42
    g_error_free (error);
 
43
  }
 
44
}
 
45
 
 
46
void
 
47
cheese_cmd_about (GtkAction *action, CheeseWindow *cheese_window)
 
48
{
 
49
  static const char *authors[] = {
 
50
    "daniel g. siegel <dgsiegel@gnome.org>",
 
51
    "Jaap A. Haitsma <jaap@haitsma.org>",
 
52
    "Filippo Argiolas <fargiolas@gnome.org>",
 
53
    "",
 
54
    "Aidan Delaney <a.j.delaney@brighton.ac.uk>",
 
55
    "Alex \"weej\" Jones <alex@weej.com>",
 
56
    "Andrea Cimitan <andrea.cimitan@gmail.com>",
 
57
    "Baptiste Mille-Mathias <bmm80@free.fr>",
 
58
    "Cosimo Cecchi <anarki@lilik.it>",
 
59
    "Diego Escalante Urrelo <dieguito@gmail.com>",
 
60
    "Felix Kaser <f.kaser@gmx.net>",
 
61
    "Gintautas Miliauskas <gintas@akl.lt>",
 
62
    "Hans de Goede <jwrdegoede@fedoraproject.org>",
 
63
    "James Liggett <jrliggett@cox.net>",
 
64
    "Luca Ferretti <elle.uca@libero.it>",
 
65
    "Mirco \"MacSlow\" Müller <macslow@bangang.de>",
 
66
    "Patryk Zawadzki <patrys@pld-linux.org>",
 
67
    "Ryan Zeigler <zeiglerr@gmail.com>",
 
68
    "Sebastian Keller <sebastian-keller@gmx.de>",
 
69
    "Steve Magoun <steve.magoun@canonical.com>",
 
70
    "Thomas Perl <thp@thpinfo.com>",
 
71
    "Tim Philipp Müller <tim@centricular.net>",
 
72
    "Todd Eisenberger <teisenberger@gmail.com>",
 
73
    "Tommi Vainikainen <thv@iki.fi>",
 
74
    NULL
 
75
  };
 
76
 
 
77
  static const char *artists[] = {
 
78
    "Andreas Nilsson <andreas@andreasn.se>",
 
79
    "Josef Vybíral <josef.vybiral@gmail.com>",
 
80
    "Kalle Persson <kalle@kallepersson.se>",
 
81
    "Lapo Calamandrei <calamandrei@gmail.com>",
 
82
    "Or Dvory <gnudles@nana.co.il>",
 
83
    "Ulisse Perusin <ulisail@yahoo.it>",
 
84
    NULL
 
85
  };
 
86
 
 
87
  static const char *documenters[] = {
 
88
    "Joshua Henderson <joshhendo@gmail.com>",
 
89
    "Jaap A. Haitsma <jaap@haitsma.org>",
 
90
    "Felix Kaser <f.kaser@gmx.net>",
 
91
    NULL
 
92
  };
 
93
 
 
94
  const char *translators;
 
95
 
 
96
  translators = _("translator-credits");
 
97
 
 
98
  const char *license[] = {
 
99
    N_("This program is free software; you can redistribute it and/or modify "
 
100
       "it under the terms of the GNU General Public License as published by "
 
101
       "the Free Software Foundation; either version 2 of the License, or "
 
102
       "(at your option) any later version.\n"),
 
103
    N_("This program is distributed in the hope that it will be useful, "
 
104
       "but WITHOUT ANY WARRANTY; without even the implied warranty of "
 
105
       "MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the "
 
106
       "GNU General Public License for more details.\n"),
 
107
    N_("You should have received a copy of the GNU General Public License "
 
108
       "along with this program. If not, see <http://www.gnu.org/licenses/>.")
 
109
  };
 
110
 
 
111
  char *license_trans;
 
112
 
 
113
  license_trans = g_strconcat (_(license[0]), "\n", _(license[1]), "\n", _(license[2]), "\n", NULL);
 
114
 
 
115
  gtk_show_about_dialog (GTK_WINDOW (cheese_window),
 
116
                         "version", VERSION,
 
117
                         "copyright", "Copyright \xc2\xa9 2007 - 2009\n daniel g. siegel <dgsiegel@gnome.org>",
 
118
                         "comments", _("Take photos and videos with your webcam, with fun graphical effects"),
 
119
                         "authors", authors,
 
120
                         "translator-credits", translators,
 
121
                         "artists", artists,
 
122
                         "documenters", documenters,
 
123
                         "website", "http://projects.gnome.org/cheese",
 
124
                         "website-label", _("Cheese Website"),
 
125
                         "logo-icon-name", "cheese",
 
126
                         "wrap-license", TRUE,
 
127
                         "license", license_trans,
 
128
                         NULL);
 
129
 
 
130
  g_free (license_trans);
 
131
}