3
* Copyright � 2002 Lutz M�ller <lutz@users.sourceforge.net>
5
* This library is free software; you can redistribute it and/or
6
* modify it under the terms of the GNU Lesser General Public
7
* License as published by the Free Software Foundation; either
8
* version 2.1 of the License, or (at your option) any later version.
10
* This library is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13
* Lesser General Public License for more details.
15
* You should have received a copy of the GNU Lesser General Public
16
* License along with this library; if not, write to the
17
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18
* Boston, MA 02111-1307, USA.
23
#include <gtk/gtkmain.h>
24
#include <gtk/gtkwindow.h>
26
#include <libexif-gtk/gtk-exif-browser.h>
31
# define _(String) dgettext (PACKAGE, String)
33
# define N_(String) gettext_noop (String)
35
# define N_(String) (String)
38
# define textdomain(String) (String)
39
# define gettext(String) (String)
40
# define dgettext(Domain,Message) (Message)
41
# define dcgettext(Domain,Message,Type) (Message)
42
# define bindtextdomain(Domain,Directory) (Domain)
43
# define _(String) (String)
44
# define N_(String) (String)
48
main (int argc, char **argv)
54
g_error ("You need to supply exactly one file to load.");
59
g_log_set_always_fatal (G_LOG_LEVEL_CRITICAL);
60
gtk_init (&argc, &argv);
62
w = gtk_window_new (GTK_WINDOW_TOPLEVEL);
64
b = gtk_exif_browser_new ();
65
ed = exif_data_new_from_file (argv[1]);
67
g_error ("Could not load EXIF data from '%s'.", argv[1]);
68
gtk_exif_browser_set_data (GTK_EXIF_BROWSER (b), ed);
70
gtk_container_add (GTK_CONTAINER (w), b);
71
g_signal_connect (G_OBJECT (w), "delete_event",
72
G_CALLBACK (gtk_main_quit), NULL);