2 * main.c -- GTK+ 2 dv1394d client demo
3 * Copyright (C) 2002-2003 Charles Yates <charles.yates@pandora.be>
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
10 * This program 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
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software Foundation,
17 * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
29 #include "interface.h"
31 #include "dv1394app.h"
33 int main( int argc
, char *argv
[] )
40 bindtextdomain (GETTEXT_PACKAGE
, PACKAGE_LOCALE_DIR
);
41 bind_textdomain_codeset (GETTEXT_PACKAGE
, "UTF-8");
42 textdomain (GETTEXT_PACKAGE
);
48 gtk_init( &argc
, &argv
);
50 // Linux hack to determine path of the executable
51 readlink( "/proc/self/exe", path
, 512 );
52 if ( strstr( path
, "/bin/fireswamp" ) )
54 ( *strstr( path
, "/bin/fireswamp" ) ) = '\0';
55 strcat( path
, "/share/fireswamp/pixmaps" );
56 add_pixmap_directory( path
);
60 add_pixmap_directory( PACKAGE_DATA_DIR
"/" PACKAGE
"/pixmaps" );
63 gdv1394d
= create_gdv1394d ();
64 gtk_widget_show (gdv1394d
);
67 app
= dv1394app_init( gdv1394d
, argv
[ 1 ] );
71 dv1394app_close( app
);