libgeda
|
00001 /* gEDA - GPL Electronic Design Automation 00002 * libgeda - gEDA's library 00003 * Copyright (C) 1998, 1999, 2000 Kazu Hirata / Ales Hvezda 00004 * Copyright (C) 1998-2010 Ales Hvezda 00005 * Copyright (C) 1998-2010 gEDA Contributors (see ChangeLog for details) 00006 * 00007 * This program is free software; you can redistribute it and/or modify 00008 * it under the terms of the GNU General Public License as published by 00009 * the Free Software Foundation; either version 2 of the License, or 00010 * (at your option) any later version. 00011 * 00012 * This program is distributed in the hope that it will be useful, 00013 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00014 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00015 * GNU General Public License for more details. 00016 * 00017 * You should have received a copy of the GNU General Public License 00018 * along with this program; if not, write to the Free Software 00019 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 00020 */ 00021 #include <config.h> 00022 00023 #include <stdio.h> 00024 #ifdef HAVE_STRING_H 00025 #include <string.h> 00026 #endif 00027 #ifdef HAVE_STRARG_H 00028 #include <stdarg.h> 00029 #endif 00030 #ifdef HAVE_STDLIB_H 00031 #include <stdlib.h> 00032 #endif 00033 00034 #include "libgeda_priv.h" 00035 #include "libgeda/libgedaguile.h" 00036 00037 #ifdef HAVE_LIBDMALLOC 00038 #include <dmalloc.h> 00039 #endif 00040 00048 void libgeda_init(void) 00049 { 00050 #ifdef ENABLE_NLS 00051 /* Initialise gettext */ 00052 bindtextdomain (LIBGEDA_GETTEXT_DOMAIN, LOCALEDIR); 00053 bind_textdomain_codeset(LIBGEDA_GETTEXT_DOMAIN, "UTF-8"); 00054 #endif 00055 00056 /* Initialise gobject */ 00057 g_type_init (); 00058 00059 s_path_sys_data (); 00060 s_path_sys_config (); 00061 00062 s_clib_init(); 00063 s_slib_init(); 00064 s_menu_init(); 00065 s_attrib_init(); 00066 s_color_init(); 00067 s_conn_init(); 00068 00069 g_register_libgeda_funcs(); 00070 g_register_libgeda_dirs(); 00071 00072 edascm_init (); 00073 } 00074 00075