~ubuntu-branches/debian/jessie/gpaint/jessie

« back to all changes in this revision

Viewing changes to src/main.c

  • Committer: Bazaar Package Importer
  • Author(s): Goedson Teixeira Paixao
  • Date: 2002-03-17 12:27:19 UTC
  • Revision ID: james.westby@ubuntu.com-20020317122719-a6mowwhvvtbmcxow
Tags: upstream-0.2.2
ImportĀ upstreamĀ versionĀ 0.2.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
/*
 
3
    Copyright 2000  Li-Cheng (Andy) Tai
 
4
 
 
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.
 
9
 
 
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.
 
14
 
 
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
 
17
    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 
18
*/
 
19
 
 
20
/*
 
21
 * Initial main.c file generated by Glade. Edit as required.
 
22
 * Glade will not overwrite this file.
 
23
 */
 
24
 
 
25
#ifdef HAVE_CONFIG_H
 
26
#  include <config.h>
 
27
#endif
 
28
 
 
29
#include <gnome.h>
 
30
 
 
31
#include "ui.h"
 
32
#include "support.h"
 
33
#include "util.h"
 
34
 
 
35
int
 
36
main (int argc, char *argv[])
 
37
{
 
38
  /*GtkWidget *about;
 
39
  GtkWidget *new_canvas_window; */
 
40
 
 
41
#ifdef ENABLE_NLS
 
42
   bindtextdomain (PACKAGE, PACKAGE_LOCALE_DIR);
 
43
   textdomain (PACKAGE); 
 
44
 
 
45
#endif
 
46
 
 
47
   gnome_init ("GNU Paint", VERSION, argc, argv);
 
48
   gdk_rgb_init();
 
49
/* use default visual and colormap from GdkRGB */
 
50
   gtk_widget_set_default_colormap (gdk_rgb_get_cmap());
 
51
   gtk_widget_set_default_visual (gdk_rgb_get_visual());
 
52
   
 
53
   
 
54
   busy_cursor = gdk_cursor_new(GDK_WATCH); 
 
55
   
 
56
   arrow_cursor = gdk_cursor_new(GDK_LEFT_PTR); 
 
57
  /*
 
58
   * The following code was added by Glade to create one of each component
 
59
   * (except popup menus), just so that you see something after building
 
60
   * the project. Delete any components that you don't want shown initially.
 
61
   */
 
62
   create_image_buf(0, DEFAULT_WIDTH, DEFAULT_HEIGHT);
 
63
   gtk_main ();
 
64
   return 0;
 
65
}
 
66