|
发表于 2005-5-19 15:30:45
|
显示全部楼层
这是楼主的东西
[code:1]
/*
* Initial main.c file generated by Glade. Edit as required.
* Glade will not overwrite this file.
*/
//#ifdef HAVE_CONFIG_H
# include <config.h>
//#endif
#include <gtk/gtk.h>
#include <glib.h>
#include "interface.h"
#include "support.h"
extern int btcore_test();
int
main (int argc, char *argv[])
{
GtkWidget *window1;
#ifdef ENABLE_NLS
bindtextdomain (GETTEXT_PACKAGE, PACKAGE_LOCALE_DIR);
bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
textdomain (GETTEXT_PACKAGE);
#endif
//if(!g_thread_supported())
//g_thread_init (NULL);
//gdk_threads_enter();
gtk_set_locale ();
gtk_init (&argc, &argv);
// add_pixmap_directory (PACKAGE_DATA_DIR "/" PACKAGE "/pixmaps");
/*
* The following code was added by Glade to create one of each component
* (except popup menus), just so that you see something after building
* the project. Delete any components that you don't want shown initially.
*/
window1 = create_MainWindow();
gtk_widget_show (window1);
gtk_main ();
//gdk_threads_leave();
return 0;
}
[/code:1] |
|