gnome-screenshot.c 1.57 KB
Newer Older
1 2 3 4
/* gnome-screenshot.c - Take a screenshot of the desktop
 *
 * Copyright (C) 2001 Jonathan Blandford <jrb@alum.mit.edu>
 * Copyright (C) 2006 Emmanuele Bassi <ebassi@gnome.org>
5
 * Copyright (C) 2008 Cosimo Cecchi <cosimoc@gnome.org>
6 7 8 9 10 11 12 13 14 15 16 17 18
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License as
 * published by the Free Software Foundation; either version 2 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
19
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301
20 21 22 23
 * USA
 */

/* THERE ARE NO FEATURE REQUESTS ALLOWED */
24 25 26
/* IF YOU WANT YOUR OWN FEATURE -- WRITE THE DAMN THING YOURSELF (-: */
/* MAYBE I LIED... -jrb */

27 28
#include "config.h"

29
#include <locale.h>
30

31 32
#include <glib/gi18n.h>

33
#include "screenshot-application.h"
34

35 36 37 38
/* main */
int
main (int argc, char *argv[])
{
39 40
  gint result;
  ScreenshotApplication *app;
41

42
  setlocale (LC_ALL, "");
Michael Catanzaro's avatar
Michael Catanzaro committed
43
  bindtextdomain (GETTEXT_PACKAGE, LOCALEDIR);
44 45 46
  bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
  textdomain (GETTEXT_PACKAGE);

47
  app = screenshot_application_new ();
48 49
  result = g_application_run (G_APPLICATION (app), argc, argv);
  g_object_unref (app);
50

51
  return result;
52
}