~ubuntu-branches/ubuntu/trusty/eiciel/trusty-proposed

« back to all changes in this revision

Viewing changes to src/eiciel_standalone.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Michael Biebl
  • Date: 2010-06-04 02:38:02 UTC
  • mfrom: (1.2.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20100604023802-jp2v6c9uviiioc5z
* New upstream release.
* debian/patches/02-gio.patch
  - Removed, merged upstream.
* debian/patches/03-no-libgnomeui.patch
  - Removed, merged upstream.
* debian/patches/01-fix-gettext-translations.patch
  - Fix gettext translations by using dgettext and specifying the correct
    domainname.
* debian/patches/02-de-po.patch
  - Update and complete German translation.
* debian/rules
  - Remove de.gmo on clean and rebuild it on build.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
2
    Eiciel - GNOME editor of ACL file permissions.
3
 
    Copyright (C) 2004-2005 Roger Ferrer Ib��ez
 
3
    Copyright (C) 2004-2010 Roger Ferrer Ib��ez
4
4
 
5
5
    This program is free software; you can redistribute it and/or modify
6
6
    it under the terms of the GNU General Public License as published by
14
14
 
15
15
    You should have received a copy of the GNU General Public License
16
16
    along with this program; if not, write to the Free Software
17
 
    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 
17
    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301,  USA
18
18
*/
19
19
#include "config.hpp"
20
20
#include <gtkmm.h>
21
21
#include "eiciel_container.hpp"
22
22
#include <gettext.h>
23
 
#include <libgnome/libgnome.h>
24
23
 
25
24
int main(int argc, char* argv[])
26
25
{
27
26
#ifdef ENABLE_NLS
28
 
    setlocale(LC_ALL, "");
 
27
        setlocale(LC_ALL, "");
29
28
    bindtextdomain("eiciel", DATADIR "/locale");
30
 
    // textdomain("eiciel");
31
 
 
32
 
    // Volem les traduccions en UTF-8 (independentment del
33
 
    // format usat per a traduir)
 
29
    
 
30
    // We want translations in UTF-8
34
31
    bind_textdomain_codeset ("eiciel", "UTF-8");
35
32
#endif
36
 
 
37
33
    GnomeProgram *my_app;
38
34
    my_app = gnome_program_init(PACKAGE, VERSION,
39
 
            LIBGNOME_MODULE, argc, argv,
 
35
            LIBGNOME_MODULE, argc, argv, 
40
36
            GNOME_PARAM_HUMAN_READABLE_NAME, "Eiciel",
41
37
            GNOME_PARAM_APP_DATADIR, DATADIR,
42
38
            NULL);
43
 
    Gtk::Main kit(argc, argv);
44
 
 
45
 
    EicielContainer w;
46
 
 
47
 
    if (argc > 1)
48
 
    {
49
 
        w.obrirFitxer(argv[1]);
50
 
    }
51
 
 
52
 
    kit.run(w);
53
 
 
54
 
    return 0;
 
39
 
 
40
        Gtk::Main kit(argc, argv);
 
41
 
 
42
        EicielContainer w;
 
43
 
 
44
        if (argc > 1)
 
45
        {
 
46
                w.open_file(argv[1]);
 
47
        }
 
48
 
 
49
        kit.run(w);
 
50
 
 
51
        return 0;
55
52
}
56
53