⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 main.c

📁 飞鸽传书的linux源代码
💻 C
字号:
/* * 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 <stdio.h>#include <stdlib.h>#include <string.h>#include <errno.h>#include <gnome.h>#include <glib.h>#include <panel-applet.h>#include "interface.h"#include "support.h"#include "common.h"GThread *ui_thread;GThread *tcp_thread;gpointer    ipmsg_ui_thread(gpointer data){  GtkWidget *initialWindow;  GtkWidget *startBtn;  initialWindow = create_initialWindow ();  startBtn=lookup_widget(initialWindow,"startBtn");  gtk_widget_set_events (startBtn,GDK_BUTTON_PRESS_MASK);  gtk_widget_show (initialWindow);  init_ipmsg();  gtk_main ();  cleanup_ipmsg();  return (gpointer)0;}static intg2ipmsg_main (int argc, char *argv[]){#ifdef ENABLE_NLS  bindtextdomain (PACKAGE, PACKAGE_LOCALE_DIR);  bind_textdomain_codeset (PACKAGE, "UTF-8");  textdomain (PACKAGE);#endif  if (create_lock_file())    exit(1); /* Can not lock */  gnome_program_init (PACKAGE, VERSION, LIBGNOMEUI_MODULE,                      argc, argv,                      GNOME_PARAM_APP_DATADIR, PACKAGE_DATA_DIR,                      NULL);  hostinfo_init_hostinfo();//include hostinfo.h  ui_thread=g_thread_create(ipmsg_ui_thread,				    NULL,				    TRUE,				    NULL);  tcp_thread=g_thread_create(ipmsg_tcp_server_thread,			     (gpointer)hostinfo_get_ipmsg_system_addr_family(),			     FALSE,			     NULL);//ipmsg_tcp_server_thread include tcp.h  g_thread_join (ui_thread);    //    g_thread_join (tcp_thread);  release_lock_file();  return 0;}int main(int argc, char *argv[]){  return g2ipmsg_main(argc,argv);}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -