main.c

来自「又一开源的解压缩chm格式文件的代码」· C语言 代码 · 共 43 行

C
43
字号
/*************************************************************************** *   Copyright (C) 2003 by zhong                                           * *   zhongz@163.com                                                        * *                                                                         * *   This program is free software; you can redistribute it and/or modify  * *   it under the terms of the GNU General Public License as published by  * *   the Free Software Foundation; either version 2 of the License, or     * *   (at your option) any later version.                                   * ***************************************************************************/#include <gtk/gtk.h>#include "interface.h"#include "startup.h"extern void chmsee_go_ex_chm_file(ChmSee *window, const gchar *filename);extern void command_delete_tmpdir(char *s_path);intmain (int argc, char *argv[]){	const gchar *filename = NULL;  	gtk_set_locale ();  	gtk_init (&argc, &argv);	ChmSee *window;	if (argv[1]) {		filename = g_strdup_printf("%s", argv[1]);	}	g_thread_init (NULL);//	gtk_window_set_auto_startup_notification(TRUE);	window = create_main_window ();//	gtk_window_set_auto_startup_notification(FALSE);	if (filename) {		chmsee_startup_popup_new();		chmsee_go_ex_chm_file(window, filename);	}	  	gtk_main ();		command_delete_tmpdir(window->tmpdir);  	return 0;}

⌨️ 快捷键说明

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