📄 interface.c
字号:
gtk_combo_set_popdown_strings (GTK_COMBO (combo3), combo3_items); g_list_free (combo3_items); entry6 = GTK_COMBO (combo3)->entry; gtk_widget_ref (entry6); gtk_object_set_data_full (GTK_OBJECT (app1), "entry6", entry6, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (entry6); gtk_tooltips_set_tip (tooltips, entry6, _("Select an operation, or enter your own command"), NULL); gtk_entry_set_text (GTK_ENTRY (entry6), _("ping")); gentry_network = gnome_entry_new ("network-hist"); gtk_widget_ref (gentry_network); gtk_object_set_data_full (GTK_OBJECT (app1), "gentry_network", gentry_network, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (gentry_network); gtk_box_pack_start (GTK_BOX (hbox4), gentry_network, TRUE, TRUE, 0); gnome_entry_set_max_saved (GNOME_ENTRY (gentry_network), 20); entry_network = gnome_entry_gtk_entry (GNOME_ENTRY (gentry_network)); gtk_widget_ref (entry_network); gtk_object_set_data_full (GTK_OBJECT (app1), "entry_network", entry_network, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (entry_network); gtk_tooltips_set_tip (tooltips, entry_network, _("Press <RETURN> to execute"), NULL); network_submit = gnome_stock_button (GNOME_STOCK_BUTTON_OK); gtk_widget_ref (network_submit); gtk_object_set_data_full (GTK_OBJECT (app1), "network_submit", network_submit, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (network_submit); gtk_box_pack_start (GTK_BOX (hbox4), network_submit, FALSE, FALSE, 0); gtk_widget_set_usize (network_submit, 80, -2); frame28 = gtk_frame_new (_("Result")); gtk_widget_ref (frame28); gtk_object_set_data_full (GTK_OBJECT (app1), "frame28", frame28, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (frame28); gtk_box_pack_start (GTK_BOX (vbox4), frame28, TRUE, TRUE, 0); gtk_container_set_border_width (GTK_CONTAINER (frame28), 5); vbox17 = gtk_vbox_new (FALSE, 5); gtk_widget_ref (vbox17); gtk_object_set_data_full (GTK_OBJECT (app1), "vbox17", vbox17, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (vbox17); gtk_container_add (GTK_CONTAINER (frame28), vbox17); gtk_container_set_border_width (GTK_CONTAINER (vbox17), 5); scrolledwindow8 = gtk_scrolled_window_new (NULL, NULL); gtk_widget_ref (scrolledwindow8); gtk_object_set_data_full (GTK_OBJECT (app1), "scrolledwindow8", scrolledwindow8, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (scrolledwindow8); gtk_box_pack_start (GTK_BOX (vbox17), scrolledwindow8, TRUE, TRUE, 0); gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolledwindow8), GTK_POLICY_NEVER, GTK_POLICY_ALWAYS); text_network = gtk_text_new (NULL, NULL); gtk_widget_ref (text_network); gtk_object_set_data_full (GTK_OBJECT (app1), "text_network", text_network, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (text_network); gtk_container_add (GTK_CONTAINER (scrolledwindow8), text_network); hbox12 = gtk_hbox_new (FALSE, 5); gtk_widget_ref (hbox12); gtk_object_set_data_full (GTK_OBJECT (app1), "hbox12", hbox12, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (hbox12); gtk_box_pack_start (GTK_BOX (vbox17), hbox12, FALSE, TRUE, 0); checkbutton24 = gtk_check_button_new_with_label (_("Clear Screen Each Time")); gtk_widget_ref (checkbutton24); gtk_object_set_data_full (GTK_OBJECT (app1), "checkbutton24", checkbutton24, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (checkbutton24); gtk_box_pack_start (GTK_BOX (hbox12), checkbutton24, TRUE, TRUE, 0); checkbutton25 = gtk_check_button_new_with_label (_("Use Fixed Font")); gtk_widget_ref (checkbutton25); gtk_object_set_data_full (GTK_OBJECT (app1), "checkbutton25", checkbutton25, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (checkbutton25); gtk_box_pack_start (GTK_BOX (hbox12), checkbutton25, TRUE, TRUE, 0); checkbutton26 = gtk_check_button_new_with_label (_("Insert Dividers Between Results")); gtk_widget_ref (checkbutton26); gtk_object_set_data_full (GTK_OBJECT (app1), "checkbutton26", checkbutton26, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (checkbutton26); gtk_box_pack_start (GTK_BOX (hbox12), checkbutton26, TRUE, TRUE, 0); label3 = gtk_label_new (_("Network Utils")); gtk_widget_ref (label3); gtk_object_set_data_full (GTK_OBJECT (app1), "label3", label3, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (label3); gtk_notebook_set_tab_label (GTK_NOTEBOOK (notebook1), gtk_notebook_get_nth_page (GTK_NOTEBOOK (notebook1), 1), label3); vbox2 = gtk_vbox_new (FALSE, 0); gtk_widget_ref (vbox2); gtk_object_set_data_full (GTK_OBJECT (app1), "vbox2", vbox2, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (vbox2); gtk_container_add (GTK_CONTAINER (notebook1), vbox2); frame9 = gtk_frame_new (_("Grep String")); gtk_widget_ref (frame9); gtk_object_set_data_full (GTK_OBJECT (app1), "frame9", frame9, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (frame9); gtk_box_pack_start (GTK_BOX (vbox2), frame9, FALSE, FALSE, 0); gtk_container_set_border_width (GTK_CONTAINER (frame9), 5); hbox6 = gtk_hbox_new (FALSE, 5); gtk_widget_ref (hbox6); gtk_object_set_data_full (GTK_OBJECT (app1), "hbox6", hbox6, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (hbox6); gtk_container_add (GTK_CONTAINER (frame9), hbox6); gtk_container_set_border_width (GTK_CONTAINER (hbox6), 5); label14 = gtk_label_new (""); gtk_widget_ref (label14); gtk_object_set_data_full (GTK_OBJECT (app1), "label14", label14, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (label14); gtk_box_pack_start (GTK_BOX (hbox6), label14, FALSE, FALSE, 0); gtk_label_set_justify (GTK_LABEL (label14), GTK_JUSTIFY_LEFT); label_grep_ps = gtk_label_new (_("ps | grep")); gtk_widget_ref (label_grep_ps); gtk_object_set_data_full (GTK_OBJECT (app1), "label_grep_ps", label_grep_ps, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (label_grep_ps); gtk_box_pack_start (GTK_BOX (hbox6), label_grep_ps, FALSE, FALSE, 0); combo5 = gtk_combo_new (); gtk_widget_ref (combo5); gtk_object_set_data_full (GTK_OBJECT (app1), "combo5", combo5, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (combo5); gtk_box_pack_start (GTK_BOX (hbox6), combo5, TRUE, TRUE, 0); combo5_items = g_list_append (combo5_items, (gpointer) _("httpd")); combo5_items = g_list_append (combo5_items, (gpointer) _("postmaster")); combo5_items = g_list_append (combo5_items, (gpointer) _("mysqld")); combo5_items = g_list_append (combo5_items, (gpointer) _("oracle")); combo5_items = g_list_append (combo5_items, (gpointer) _("smb")); combo5_items = g_list_append (combo5_items, (gpointer) _("lpr")); combo5_items = g_list_append (combo5_items, (gpointer) _("gnome")); combo5_items = g_list_append (combo5_items, (gpointer) _("netscape")); combo5_items = g_list_append (combo5_items, (gpointer) _("mozilla")); combo5_items = g_list_append (combo5_items, (gpointer) _("sendmail")); combo5_items = g_list_append (combo5_items, (gpointer) _("icu")); combo5_items = g_list_append (combo5_items, (gpointer) _("kdeinit")); combo5_items = g_list_append (combo5_items, (gpointer) _("bash")); combo5_items = g_list_append (combo5_items, (gpointer) _("gwcc")); gtk_combo_set_popdown_strings (GTK_COMBO (combo5), combo5_items); g_list_free (combo5_items); entry10 = GTK_COMBO (combo5)->entry; gtk_widget_ref (entry10); gtk_object_set_data_full (GTK_OBJECT (app1), "entry10", entry10, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (entry10); gtk_tooltips_set_tip (tooltips, entry10, _("Enter text to grep for"), NULL); gtk_entry_set_text (GTK_ENTRY (entry10), _("httpd")); brep_button = gnome_stock_button (GNOME_STOCK_BUTTON_OK); gtk_widget_ref (brep_button); gtk_object_set_data_full (GTK_OBJECT (app1), "brep_button", brep_button, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (brep_button); gtk_box_pack_start (GTK_BOX (hbox6), brep_button, FALSE, FALSE, 0); gtk_widget_set_usize (brep_button, 80, -2); frame21 = gtk_frame_new (_("Result")); gtk_widget_ref (frame21); gtk_object_set_data_full (GTK_OBJECT (app1), "frame21", frame21, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (frame21); gtk_box_pack_start (GTK_BOX (vbox2), frame21, TRUE, TRUE, 0); gtk_container_set_border_width (GTK_CONTAINER (frame21), 5); table12 = gtk_table_new (1, 1, FALSE); gtk_widget_ref (table12); gtk_object_set_data_full (GTK_OBJECT (app1), "table12", table12, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (table12); gtk_container_add (GTK_CONTAINER (frame21), table12); gtk_container_set_border_width (GTK_CONTAINER (table12), 5); gtk_table_set_row_spacings (GTK_TABLE (table12), 5); gtk_table_set_col_spacings (GTK_TABLE (table12), 5); vbox16 = gtk_vbox_new (FALSE, 5); gtk_widget_ref (vbox16); gtk_object_set_data_full (GTK_OBJECT (app1), "vbox16", vbox16, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (vbox16); gtk_table_attach (GTK_TABLE (table12), vbox16, 0, 1, 0, 1, (GtkAttachOptions) (GTK_EXPAND | GTK_FILL), (GtkAttachOptions) (GTK_EXPAND | GTK_FILL), 0, 0); scrolledwindow7 = gtk_scrolled_window_new (NULL, NULL); gtk_widget_ref (scrolledwindow7); gtk_object_set_data_full (GTK_OBJECT (app1), "scrolledwindow7", scrolledwindow7, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (scrolledwindow7); gtk_box_pack_start (GTK_BOX (vbox16), scrolledwindow7, TRUE, TRUE, 0); gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolledwindow7), GTK_POLICY_NEVER, GTK_POLICY_ALWAYS); text_grep = gtk_text_new (NULL, NULL); gtk_widget_ref (text_grep); gtk_object_set_data_full (GTK_OBJECT (app1), "text_grep", text_grep, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (text_grep); gtk_container_add (GTK_CONTAINER (scrolledwindow7), text_grep); hbox11 = gtk_hbox_new (FALSE, 5); gtk_widget_ref (hbox11); gtk_object_set_data_full (GTK_OBJECT (app1), "hbox11", hbox11, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (hbox11); gtk_box_pack_start (GTK_BOX (vbox16), hbox11, FALSE, TRUE, 0); checkbutton20 = gtk_check_button_new_with_label (_("Clear Screen Each Time")); gtk_widget_ref (checkbutton20); gtk_object_set_data_full (GTK_OBJECT (app1), "checkbutton20", checkbutton20, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (checkbutton20); gtk_box_pack_start (GTK_BOX (hbox11), checkbutton20, TRUE, TRUE, 0); checkbutton21 = gtk_check_button_new_with_label (_("Use Fixed Font")); gtk_widget_ref (checkbutton21); gtk_object_set_data_full (GTK_OBJECT (app1), "checkbutton21", checkbutton21, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (checkbutton21); gtk_box_pack_start (GTK_BOX (hbox11), checkbutton21, TRUE, TRUE, 0); checkbutton22 = gtk_check_button_new_with_label (_("Insert Dividers Between Results")); gtk_widget_ref (checkbutton22); gtk_object_set_data_full (GTK_OBJECT (app1), "checkbutton22", checkbutton22, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (checkbutton22); gtk_box_pack_start (GTK_BOX (hbox11), checkbutton22, TRUE, TRUE, 0); label2 = gtk_label_new (_("Process Grep")); gtk_widget_ref (label2); gtk_object_set_data_full (GTK_OBJECT (app1), "label2", label2, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (label2); gtk_notebook_set_tab_label (GTK_NOTEBOOK (notebook1), gtk_notebook_get_nth_page (GTK_NOTEBOOK (notebook1), 2), label2); vbox19 = gtk_vbox_new (FALSE, 0); gtk_widget_ref (vbox19); gtk_object_set_data_full (GTK_OBJECT (app1), "vbox19", vbox19, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (vbox19); gtk_container_add (GTK_CONTAINER (notebook1), vbox19); frame48 = gtk_frame_new (_("Process Display")); gtk_widget_ref (frame48); gtk_object_set_data_full (GTK_OBJECT (app1), "frame48", frame48, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (frame48); gtk_box_pack_start (GTK_BOX (vbox19), frame48, TRUE, TRUE, 0); gtk_container_set_border_width (GTK_CONTAINER (frame48), 5); scrolledwindow10 = gtk_scrolled_window_new (NULL, NULL); gtk_widget_ref (scrolledwindow10); gtk_object_set_data_full (GTK_OBJECT (app1), "scrolledwindow10", scrolledwindow10, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (scrolledwindow10); gtk_container_add (GTK_CONTAINER (frame48), scrolledwindow10); gtk_container_set_border_width (GTK_CONTAINER (scrolledwindow10), 5); gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolledwindow10), GTK_POLICY_AUTOMATIC, GTK_POLICY_ALWAYS); process_clist = gtk_clist_new (6); gtk_widget_ref (process_clist); gtk_object_set_data_full (GTK_OBJECT (app1), "process_clist", process_clist, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (process_clist); gtk_container_add (GTK_CONTAINER (scrolledwindow10), process_clist); gtk_tooltips_set_tip (tooltips, process_clist, _("Right-Click for Options"), NULL); gtk_clist_set_column_width (GTK_CLIST (process_clist), 0, 61); gtk_clist_set_column_width (GTK_CLIST (process_clist), 1, 78); gtk_clist_set_column_width (GTK_CLIST (process_clist), 2, 69);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -