~ubuntu-branches/ubuntu/raring/gnome-photo-printer/raring

« back to all changes in this revision

Viewing changes to src/gpp.c

  • Committer: Bazaar Package Importer
  • Author(s): Michael Schlueter
  • Date: 2007-01-14 13:56:09 UTC
  • mfrom: (1.2.3 upstream) (4.1.1 lenny)
  • Revision ID: james.westby@ubuntu.com-20070114135609-mz4hcg50xnkaeg17
Tags: 0.7.0-1
* New upstream release
* Bug fix: gnome-photo-printer: No integration into GNOME menu, thanks
  to Sebastien NOBILI (closes: #406296)

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
17
17
*/
18
18
 
 
19
#include <config.h>
19
20
#include <stdio.h>
20
21
#include <stdlib.h>
21
22
#include <gnome.h>
38
39
int
39
40
main (int argc, char **argv)
40
41
{
 
42
        GnomeProgram    *program;
 
43
        GtkWidget       *window;
 
44
        gchar           *file;
41
45
 
42
 
        GnomeProgram *program;
43
 
        GtkWidget *window;
44
 
        gchar *file;
 
46
        bindtextdomain (GETTEXT_PACKAGE, LOCALDIR);
 
47
        bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
 
48
        textdomain (GETTEXT_PACKAGE);
45
49
 
46
50
        /* Initialize Gnome and Gnome-vfs */
47
51
        program = gnome_program_init ("gpp", "0.6", LIBGNOMEUI_MODULE, argc,
51
55
                                      NULL);
52
56
 
53
57
        if (!gnome_vfs_init ())
54
 
                g_error ("GNOME-VFS could not be initialized!\n");
 
58
                g_error (_("GNOME-VFS could not be initialized!\n"));
55
59
 
56
60
        /* Initialize the gpp_definition structure */
57
61
        gpp_definition = g_malloc (sizeof (struct _print_definition));