~ubuntu-branches/ubuntu/trusty/imagination/trusty-updates

« back to all changes in this revision

Viewing changes to src/imagination.c

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Baumann
  • Date: 2009-05-12 07:19:02 UTC
  • Revision ID: james.westby@ubuntu.com-20090512071902-1qlldhv7rlfktvzl
Tags: upstream-1.0
ImportĀ upstreamĀ versionĀ 1.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 *  Copyright (c) 2009 Giuseppe Torelli <colossus73@gmail.com>
 
3
 *
 
4
 *  This program is free software; you can redistribute it and/or modify
 
5
 *  it under the terms of the GNU General Public License as published by
 
6
 *  the Free Software Foundation; either version 2 of the License,or
 
7
 *  (at your option) any later version.
 
8
 *
 
9
 *  This program is distributed in the hope that it will be useful,
 
10
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 
11
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
12
 *  GNU Library General Public License for more details.
 
13
 *
 
14
 *  You should have received a copy of the GNU General Public License
 
15
 *  along with this program; if not,write to the Free Software
 
16
 *  Foundation,Inc.,59 Temple Place - Suite 330,Boston,MA 02111-1307,USA.
 
17
 *
 
18
 */
 
19
 
 
20
#ifdef HAVE_CONFIG_H
 
21
#  include <config.h>
 
22
#endif
 
23
 
 
24
#include <gtk/gtk.h>
 
25
 
 
26
#include "main-window.h"
 
27
#include "support.h"
 
28
 
 
29
int main (int argc, char *argv[])
 
30
{
 
31
        img_window_struct *img_window;
 
32
 
 
33
        #ifdef ENABLE_NLS
 
34
                bindtextdomain (GETTEXT_PACKAGE, PACKAGE_LOCALE_DIR);
 
35
                bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
 
36
                textdomain (GETTEXT_PACKAGE);
 
37
        #endif
 
38
 
 
39
        gtk_set_locale ();
 
40
        gtk_init (&argc, &argv);
 
41
 
 
42
        img_window = img_create_window();
 
43
 
 
44
        /* Load the transitions as plugins with GModule */
 
45
        img_load_available_transitions(img_window);
 
46
 
 
47
        /* Set some default values */
 
48
        img_window->background_color = 0x000000ff;
 
49
        img_window->aspect_ratio = "4:3";
 
50
        img_window->slideshow_format_index = 0;
 
51
        img_window->slides_nr = 0;
 
52
        img_window->distort_images = TRUE;
 
53
 
 
54
        gtk_widget_show (img_window->imagination_window);
 
55
        img_set_statusbar_message(img_window,0);
 
56
 
 
57
        gtk_main ();
 
58
 
 
59
        g_free(img_window);
 
60
        return 0;
 
61
}
 
62