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

📄 main.c

📁 又一开源的解压缩chm格式文件的代码
💻 C
字号:
/*************************************************************************** *   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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -