Glavna stranica | Popis datoteka | Članovi klasa u datoteci

/home/srle/Projects/sisadmin/src/main.c

Dokumenacija za ovu datoteku.
00001 /********************************************************************************
00002  *      Studentski Informacijski servis, 2004                                                                           *
00003  ********************************************************************************
00004  *  SiS.Admin                                                                                                                                   *
00005  *  main.c                                                                                                                                              *
00006  *      Inicijalizacija programa                                                                                                        *
00007  *                                                                                                                                                              *
00008  *  Srdjan Segvic - srle                                                                                                                *
00009  ********************************************************************************
00010  ********************************************************************************
00011  *  This program is free software; you can redistribute it and/or modify                *
00012  *  it under the terms of the GNU General Public License as published by                *
00013  *  the Free Software Foundation; either version 2 of the License, or                   *
00014  *  (at your option) any later version.                                                                                 *
00015  *                                                                                                                                                              *
00016  *  This program is distributed in the hope that it will be useful,                             *
00017  *  but WITHOUT ANY WARRANTY; without even the implied warranty of                              *
00018  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the                               *
00019  *  GNU Library General Public License for more details.                                                *
00020  *                                                                                                                                                              *
00021  *  You should have received a copy of the GNU General Public License                   *
00022  *  along with this program; if not, write to the Free Software                                 *
00023  *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  *
00024  ********************************************************************************/
00025 #ifdef HAVE_CONFIG_H
00026 #  include <config.h>
00027 #endif
00028 
00029 #include <gtk/gtk.h>
00030 #include <locale.h>
00031 #include <langinfo.h>
00032 
00033 #include "interface.h"
00034 #include "support.h"
00035 
00036 
00037 int
00038 main (int argc, char *argv[])
00039 {
00040   GtkWidget *loginWidow;
00041   
00042 
00043 
00044 #ifdef ENABLE_NLS
00045   bindtextdomain (GETTEXT_PACKAGE, PACKAGE_LOCALE_DIR);
00046   bind_textdomain_codeset (GETTEXT_PACKAGE, "ISO-8859-2");
00047   textdomain (GETTEXT_PACKAGE);
00048 #endif
00049   
00050   bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
00051   gtk_rc_parse("./sisadminrc");
00052   gtk_set_locale ();
00053   gtk_init (&argc, &argv);
00054                 
00055   printf ("%s\n", nl_langinfo (CODESET));
00056                 
00057   add_pixmap_directory (PACKAGE_DATA_DIR "/" PACKAGE "/pixmaps");
00058 
00059   loginWidow = create_loginWidow ();
00060   gtk_widget_show (loginWidow);    
00061   
00062   gtk_main ();
00063   return 0;
00064 }
00065 

Generirano Thu Sep 16 17:26:20 2004 projekt: SiS.Admin generator: doxygen 1.3.2