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

📄 main.c

📁 Linux下的GTK系统监视器 v0.1
💻 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 <gtk/gtk.h>#include "interface.h"#include "support.h"#include "callbacks.h"intmain (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  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_window_main ();  gtk_widget_show (window1);      Clist_operation(window1);  get_machine_base_info(window1);  Progressbar_operation(window1);  //  auto-Refresh per 3s    gtk_timeout_add(3000,Clist_operation,(gpointer)window1);  gtk_timeout_add(3000,Progressbar_operation,(gpointer)window1);  gtk_timeout_add(3000,get_machine_base_info,(gpointer)window1);    gtk_main ();  return 0;}

⌨️ 快捷键说明

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