~isantop/system76-driver/pkexec

« back to all changes in this revision

Viewing changes to src/main.c

  • Committer: Carl Richell
  • Date: 2007-05-29 03:36:10 UTC
  • Revision ID: carl@system76.com-20070529033610-9qeih4btk1oxo6sj
initial bazaar revision - System76 Driver 2.0.4

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Initial main.c file generated by Glade. Edit as required.
 
3
 * Glade will not overwrite this file.
 
4
 */
 
5
 
 
6
#ifdef HAVE_CONFIG_H
 
7
#  include <config.h>
 
8
#endif
 
9
 
 
10
#include <gtk/gtk.h>
 
11
 
 
12
#include "interface.h"
 
13
#include "support.h"
 
14
 
 
15
int
 
16
main (int argc, char *argv[])
 
17
{
 
18
  GtkWidget *mainWindow;
 
19
 
 
20
#ifdef ENABLE_NLS
 
21
  bindtextdomain (GETTEXT_PACKAGE, PACKAGE_LOCALE_DIR);
 
22
  bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
 
23
  textdomain (GETTEXT_PACKAGE);
 
24
#endif
 
25
 
 
26
  gtk_set_locale ();
 
27
  gtk_init (&argc, &argv);
 
28
 
 
29
  add_pixmap_directory (PACKAGE_DATA_DIR "/" PACKAGE "/pixmaps");
 
30
 
 
31
  /*
 
32
   * The following code was added by Glade to create one of each component
 
33
   * (except popup menus), just so that you see something after building
 
34
   * the project. Delete any components that you don't want shown initially.
 
35
   */
 
36
  mainWindow = create_mainWindow ();
 
37
  gtk_widget_show (mainWindow);
 
38
 
 
39
  gtk_main ();
 
40
  return 0;
 
41
}
 
42