~ubuntu-branches/ubuntu/natty/gsetroot/natty

« back to all changes in this revision

Viewing changes to src/main.c

  • Committer: Bazaar Package Importer
  • Author(s): William Vera
  • Date: 2005-07-05 21:55:03 UTC
  • Revision ID: james.westby@ubuntu.com-20050705215503-0s535srcoqdz1n9v
Tags: upstream-1.0
ImportĀ upstreamĀ versionĀ 1.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 *  gsetroot - gtk-based front-end for Esetroot
 
3
 *  Copyright (C) 2005 Bellabes Lounis
 
4
 *  nolius@users.sourceforge.net
 
5
 *
 
6
 *  This program is free software; you can redistribute it and/or modify
 
7
 *  it under the terms of the GNU General Public License as published by
 
8
 *  the Free Software Foundation; either version 2 of the License, or
 
9
 *  (at your option) any later version.
 
10
 *
 
11
 *  This program is distributed in the hope that it will be useful,
 
12
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 
13
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
14
 *  GNU Library General Public License for more details.
 
15
 *
 
16
 *  You should have received a copy of the GNU General Public License
 
17
 *  along with this program; if not, write to the Free Software
 
18
 *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
19
 */
 
20
 
 
21
/*
 
22
 * Initial main.c file generated by Glade. Edit as required.
 
23
 * Glade will not overwrite this file.
 
24
 */
 
25
 
 
26
#ifdef HAVE_CONFIG_H
 
27
#  include <config.h>
 
28
#endif
 
29
 
 
30
#include <gtk/gtk.h>
 
31
 
 
32
#include "interface.h"
 
33
#include "support.h"
 
34
 
 
35
int
 
36
main (int argc, char *argv[])
 
37
{
 
38
  GtkWidget *window1;
 
39
 
 
40
#ifdef ENABLE_NLS
 
41
  bindtextdomain (GETTEXT_PACKAGE, PACKAGE_LOCALE_DIR);
 
42
  bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
 
43
  textdomain (GETTEXT_PACKAGE);
 
44
#endif
 
45
 
 
46
  gtk_set_locale ();
 
47
  gtk_init (&argc, &argv);
 
48
 
 
49
  add_pixmap_directory (PACKAGE_DATA_DIR "/" PACKAGE "/pixmaps");
 
50
 
 
51
  /*
 
52
   * The following code was added by Glade to create one of each component
 
53
   * (except popup menus), just so that you see something after building
 
54
   * the project. Delete any components that you don't want shown initially.
 
55
   */
 
56
  window1 = create_window1 ();
 
57
  gtk_widget_show (window1);
 
58
 
 
59
  gtk_main ();
 
60
  return 0;
 
61
}