📄 gefaxerror.c
字号:
/* gefax: (gefax is a easy frontend for efax. With efax you can send faxesover your modem to someone else.) Copyright (C) 2000 Rainer Wiener <rainer@konqui.de>This program is free software; you can redistribute it and/ormodify it under the terms of the GNU Public License as published bythe Free Software Foundation; either version 2 of the License, or (atyour option) any later version.This program is distibuted in the hope that it will be useful, butWITHOUT ANY WARRANTY; without even the implied warranty ofMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNUGeneral Public Licence for more details.You should have received a copy of the GNU General Public Licencealong with this program; if not, write to the Free SoftwareFoundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.*/ #include <gtk/gtk.h>#include <stdio.h>#include "gefaxerror.h"extern GtkWidget *window2, *window3, *filew, *efaxerror;extern GtkWidget *scrolled_window;void fehler1(){ GtkWidget *buttoninfo, *tabelle1, *labelinfo; window2 = gtk_window_new(GTK_WINDOW_TOPLEVEL); gtk_widget_set_usize (GTK_WIDGET (window2), 200, 200); gtk_window_set_title (GTK_WINDOW (window2), "Error"); gtk_container_border_width (GTK_CONTAINER (window2), 10); tabelle1 = gtk_table_new(100, 20, TRUE); gtk_container_add(GTK_CONTAINER(window2), tabelle1); buttoninfo = gtk_button_new_with_label("OK"); labelinfo = gtk_label_new("Please enter a FAX-Nr. or \n a Filename"); gtk_table_attach_defaults(GTK_TABLE(tabelle1), labelinfo, 0, 20, 0, 80); gtk_table_attach_defaults(GTK_TABLE(tabelle1), buttoninfo, 7, 14, 80,100); gtk_signal_connect (GTK_OBJECT (buttoninfo), "clicked", GTK_SIGNAL_FUNC(close1), NULL); gtk_widget_show_all(window2);}void fehler2(){ GtkWidget *buttoninfo, *tabelle1, *labelinfo; window2 = gtk_window_new(GTK_WINDOW_TOPLEVEL); gtk_widget_set_usize (GTK_WIDGET (window2), 200, 200); gtk_window_set_title (GTK_WINDOW (window2), "Error"); gtk_container_border_width (GTK_CONTAINER (window2), 10); tabelle1 = gtk_table_new(100, 20, TRUE); gtk_container_add(GTK_CONTAINER(window2), tabelle1); buttoninfo = gtk_button_new_with_label("OK"); labelinfo = gtk_label_new("File not found"); gtk_table_attach_defaults(GTK_TABLE(tabelle1), labelinfo, 0, 20, 0, 80); gtk_table_attach_defaults(GTK_TABLE(tabelle1), buttoninfo, 7, 14, 80,100); gtk_signal_connect (GTK_OBJECT (buttoninfo), "clicked", GTK_SIGNAL_FUNC(close1), NULL); gtk_widget_show_all(window2);}void fehler3(){ GtkWidget *buttoninfo, *tabelle1, *labelinfo; window2 = gtk_window_new(GTK_WINDOW_TOPLEVEL); gtk_widget_set_usize (GTK_WIDGET (window2), 200, 200); gtk_window_set_title (GTK_WINDOW (window2), "Error"); gtk_container_border_width (GTK_CONTAINER (window2), 10); tabelle1 = gtk_table_new(100, 20, TRUE); gtk_container_add(GTK_CONTAINER(window2), tabelle1); buttoninfo = gtk_button_new_with_label("OK"); labelinfo = gtk_label_new("sending failed"); gtk_table_attach_defaults(GTK_TABLE(tabelle1), labelinfo, 0, 20, 0, 80); gtk_table_attach_defaults(GTK_TABLE(tabelle1), buttoninfo, 7, 14, 80,100); gtk_signal_connect (GTK_OBJECT (buttoninfo), "clicked", GTK_SIGNAL_FUNC(close1), NULL); gtk_widget_show_all(window2);}void close1(GtkWidget *widget, gpointer data){ gtk_widget_destroy(window2);}void close2(GtkWidget *widget, gpointer data){ gtk_widget_destroy(filew);}void close3(GtkWidget *widget, gpointer data){ gtk_widget_destroy(window3);}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -