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

📄 interface.c

📁 linux下的飞鸽传书 日本人设计 使用非常方便
💻 C
📖 第 1 页 / 共 5 页
字号:
  gtk_tooltips_set_tip (tooltips, DownLoadCancelBtn, _("Please push this button to discard download files."), NULL);  scrolledwindow12 = gtk_scrolled_window_new (NULL, NULL);  gtk_widget_show (scrolledwindow12);  gtk_fixed_put (GTK_FIXED (fixed1), scrolledwindow12, 0, 0);  gtk_widget_set_size_request (scrolledwindow12, 712, 248);  DownLoadFileTree = gtk_tree_view_new ();  gtk_widget_show (DownLoadFileTree);  gtk_container_add (GTK_CONTAINER (scrolledwindow12), DownLoadFileTree);  gtk_widget_set_size_request (DownLoadFileTree, 680, 256);  gtk_tooltips_set_tip (tooltips, DownLoadFileTree, _("Please select files to be saved."), NULL);  DownLoadAllCheckBtn = gtk_check_button_new_with_mnemonic (_("down load all at once"));  gtk_widget_show (DownLoadAllCheckBtn);  gtk_fixed_put (GTK_FIXED (fixed1), DownLoadAllCheckBtn, 8, 264);  gtk_widget_set_size_request (DownLoadAllCheckBtn, 216, 24);  gtk_tooltips_set_tip (tooltips, DownLoadAllCheckBtn, _("Please check here if you want to download all of selected files at once."), NULL);  gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (DownLoadAllCheckBtn), TRUE);  downloadManagerFrameLabel = gtk_label_new (_("<b>DownLoad files</b>"));  gtk_widget_show (downloadManagerFrameLabel);  gtk_frame_set_label_widget (GTK_FRAME (frame6), downloadManagerFrameLabel);  gtk_label_set_use_markup (GTK_LABEL (downloadManagerFrameLabel), TRUE);  g_signal_connect ((gpointer) downloadWindow, "destroy",                    G_CALLBACK (on_downloadWindow_destroy),                    NULL);  g_signal_connect ((gpointer) downloadWindow, "check_resize",                    G_CALLBACK (on_downloadWindow_check_resize),                    NULL);  g_signal_connect ((gpointer) downloadWindow, "size_allocate",                    G_CALLBACK (on_downloadWindow_size_allocate),                    NULL);  g_signal_connect ((gpointer) DownLoadOpenBtn, "clicked",                    G_CALLBACK (on_DownLoadOpenBtn_clicked),                    NULL);  g_signal_connect ((gpointer) DownLoadOKBtn, "clicked",                    G_CALLBACK (on_DownLoadOKBtn_clicked),                    NULL);  g_signal_connect ((gpointer) DownLoadCancelBtn, "clicked",                    G_CALLBACK (on_DownLoadCancelBtn_clicked),                    NULL);  /* Store pointers to all widgets, for use by lookup_widget(). */  GLADE_HOOKUP_OBJECT_NO_REF (downloadWindow, downloadWindow, "downloadWindow");  GLADE_HOOKUP_OBJECT (downloadWindow, frame6, "frame6");  GLADE_HOOKUP_OBJECT (downloadWindow, alignment7, "alignment7");  GLADE_HOOKUP_OBJECT (downloadWindow, viewport1, "viewport1");  GLADE_HOOKUP_OBJECT (downloadWindow, fixed1, "fixed1");  GLADE_HOOKUP_OBJECT (downloadWindow, DownLoadDirectoryEntry, "DownLoadDirectoryEntry");  GLADE_HOOKUP_OBJECT (downloadWindow, DownLoadDirectoryLabel, "DownLoadDirectoryLabel");  GLADE_HOOKUP_OBJECT (downloadWindow, DownLoadOpenBtn, "DownLoadOpenBtn");  GLADE_HOOKUP_OBJECT (downloadWindow, DownLoadOKBtn, "DownLoadOKBtn");  GLADE_HOOKUP_OBJECT (downloadWindow, DownLoadCancelBtn, "DownLoadCancelBtn");  GLADE_HOOKUP_OBJECT (downloadWindow, scrolledwindow12, "scrolledwindow12");  GLADE_HOOKUP_OBJECT (downloadWindow, DownLoadFileTree, "DownLoadFileTree");  GLADE_HOOKUP_OBJECT (downloadWindow, DownLoadAllCheckBtn, "DownLoadAllCheckBtn");  GLADE_HOOKUP_OBJECT (downloadWindow, downloadManagerFrameLabel, "downloadManagerFrameLabel");  GLADE_HOOKUP_OBJECT_NO_REF (downloadWindow, tooltips, "tooltips");  return downloadWindow;}GtkWidget*create_downloadDialog (void){  GtkWidget *downloadDialog;  GdkPixbuf *downloadDialog_icon_pixbuf;  GtkWidget *dialog_vbox1;  GtkWidget *scrolledwindow5;  GtkWidget *treeview2;  GtkWidget *dialog_action_area1;  GtkWidget *downloadDialogSaveBtn;  GtkWidget *downloadDialogCloseBtn;  downloadDialog = gtk_dialog_new ();  gtk_window_set_title (GTK_WINDOW (downloadDialog), _("download dialog"));  gtk_window_set_modal (GTK_WINDOW (downloadDialog), TRUE);  downloadDialog_icon_pixbuf = create_pixbuf ("g2ipmsg/ipmsg.xpm");  if (downloadDialog_icon_pixbuf)    {      gtk_window_set_icon (GTK_WINDOW (downloadDialog), downloadDialog_icon_pixbuf);      gdk_pixbuf_unref (downloadDialog_icon_pixbuf);    }  gtk_window_set_type_hint (GTK_WINDOW (downloadDialog), GDK_WINDOW_TYPE_HINT_DIALOG);  dialog_vbox1 = GTK_DIALOG (downloadDialog)->vbox;  gtk_widget_show (dialog_vbox1);  scrolledwindow5 = gtk_scrolled_window_new (NULL, NULL);  gtk_widget_show (scrolledwindow5);  gtk_box_pack_start (GTK_BOX (dialog_vbox1), scrolledwindow5, TRUE, TRUE, 0);  gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (scrolledwindow5), GTK_SHADOW_IN);  treeview2 = gtk_tree_view_new ();  gtk_widget_show (treeview2);  gtk_container_add (GTK_CONTAINER (scrolledwindow5), treeview2);  dialog_action_area1 = GTK_DIALOG (downloadDialog)->action_area;  gtk_widget_show (dialog_action_area1);  gtk_button_box_set_layout (GTK_BUTTON_BOX (dialog_action_area1), GTK_BUTTONBOX_END);  downloadDialogSaveBtn = gtk_button_new_from_stock ("gtk-save");  gtk_widget_show (downloadDialogSaveBtn);  gtk_dialog_add_action_widget (GTK_DIALOG (downloadDialog), downloadDialogSaveBtn, 0);  GTK_WIDGET_SET_FLAGS (downloadDialogSaveBtn, GTK_CAN_DEFAULT);  downloadDialogCloseBtn = gtk_button_new_from_stock ("gtk-close");  gtk_widget_show (downloadDialogCloseBtn);  gtk_dialog_add_action_widget (GTK_DIALOG (downloadDialog), downloadDialogCloseBtn, GTK_RESPONSE_CLOSE);  GTK_WIDGET_SET_FLAGS (downloadDialogCloseBtn, GTK_CAN_DEFAULT);  /* Store pointers to all widgets, for use by lookup_widget(). */  GLADE_HOOKUP_OBJECT_NO_REF (downloadDialog, downloadDialog, "downloadDialog");  GLADE_HOOKUP_OBJECT_NO_REF (downloadDialog, dialog_vbox1, "dialog_vbox1");  GLADE_HOOKUP_OBJECT (downloadDialog, scrolledwindow5, "scrolledwindow5");  GLADE_HOOKUP_OBJECT (downloadDialog, treeview2, "treeview2");  GLADE_HOOKUP_OBJECT_NO_REF (downloadDialog, dialog_action_area1, "dialog_action_area1");  GLADE_HOOKUP_OBJECT (downloadDialog, downloadDialogSaveBtn, "downloadDialogSaveBtn");  GLADE_HOOKUP_OBJECT (downloadDialog, downloadDialogCloseBtn, "downloadDialogCloseBtn");  return downloadDialog;}GtkWidget*create_downloadfilechooserdialog (void){  GtkWidget *downloadfilechooserdialog;  GdkPixbuf *downloadfilechooserdialog_icon_pixbuf;  GtkWidget *dialog_vbox2;  GtkWidget *dialog_action_area2;  GtkWidget *button3;  GtkWidget *button4;  downloadfilechooserdialog = gtk_file_chooser_dialog_new (_("save down loaded file"), NULL, GTK_FILE_CHOOSER_ACTION_SAVE, NULL);  gtk_window_set_modal (GTK_WINDOW (downloadfilechooserdialog), TRUE);  downloadfilechooserdialog_icon_pixbuf = create_pixbuf ("g2ipmsg/ipmsg.xpm");  if (downloadfilechooserdialog_icon_pixbuf)    {      gtk_window_set_icon (GTK_WINDOW (downloadfilechooserdialog), downloadfilechooserdialog_icon_pixbuf);      gdk_pixbuf_unref (downloadfilechooserdialog_icon_pixbuf);    }  gtk_window_set_type_hint (GTK_WINDOW (downloadfilechooserdialog), GDK_WINDOW_TYPE_HINT_DIALOG);  dialog_vbox2 = GTK_DIALOG (downloadfilechooserdialog)->vbox;  gtk_widget_show (dialog_vbox2);  dialog_action_area2 = GTK_DIALOG (downloadfilechooserdialog)->action_area;  gtk_widget_show (dialog_action_area2);  gtk_button_box_set_layout (GTK_BUTTON_BOX (dialog_action_area2), GTK_BUTTONBOX_END);  button3 = gtk_button_new_from_stock ("gtk-cancel");  gtk_widget_show (button3);  gtk_dialog_add_action_widget (GTK_DIALOG (downloadfilechooserdialog), button3, GTK_RESPONSE_CANCEL);  GTK_WIDGET_SET_FLAGS (button3, GTK_CAN_DEFAULT);  button4 = gtk_button_new_from_stock ("gtk-open");  gtk_widget_show (button4);  gtk_dialog_add_action_widget (GTK_DIALOG (downloadfilechooserdialog), button4, GTK_RESPONSE_OK);  GTK_WIDGET_SET_FLAGS (button4, GTK_CAN_DEFAULT);  g_signal_connect ((gpointer) downloadfilechooserdialog, "destroy",                    G_CALLBACK (on_downloadfilechooserdialog_destroy),                    NULL);  g_signal_connect ((gpointer) downloadfilechooserdialog, "confirm_overwrite",                    G_CALLBACK (on_downloadfilechooserdialog_confirm_overwrite),                    NULL);  g_signal_connect ((gpointer) downloadfilechooserdialog, "current_folder_changed",                    G_CALLBACK (on_downloadfilechooserdialog_current_folder_changed),                    NULL);  g_signal_connect ((gpointer) downloadfilechooserdialog, "file_activated",                    G_CALLBACK (on_downloadfilechooserdialog_file_activated),                    NULL);  g_signal_connect ((gpointer) downloadfilechooserdialog, "update_preview",                    G_CALLBACK (on_downloadfilechooserdialog_update_preview),                    NULL);  g_signal_connect ((gpointer) downloadfilechooserdialog, "close",                    G_CALLBACK (on_downloadfilechooserdialog_close),                    NULL);  g_signal_connect ((gpointer) downloadfilechooserdialog, "response",                    G_CALLBACK (on_downloadfilechooserdialog_response),                    NULL);  /* Store pointers to all widgets, for use by lookup_widget(). */  GLADE_HOOKUP_OBJECT_NO_REF (downloadfilechooserdialog, downloadfilechooserdialog, "downloadfilechooserdialog");  GLADE_HOOKUP_OBJECT_NO_REF (downloadfilechooserdialog, dialog_vbox2, "dialog_vbox2");  GLADE_HOOKUP_OBJECT_NO_REF (downloadfilechooserdialog, dialog_action_area2, "dialog_action_area2");  GLADE_HOOKUP_OBJECT (downloadfilechooserdialog, button3, "button3");  GLADE_HOOKUP_OBJECT (downloadfilechooserdialog, button4, "button4");  gtk_widget_grab_default (button4);  return downloadfilechooserdialog;}GtkWidget*create_logfileChooserdialog (void){  GtkWidget *logfileChooserdialog;  GdkPixbuf *logfileChooserdialog_icon_pixbuf;  GtkWidget *dialog_vbox3;  GtkWidget *dialog_action_area3;  GtkWidget *button5;  GtkWidget *button6;  logfileChooserdialog = gtk_file_chooser_dialog_new (_("LogFile"), NULL, GTK_FILE_CHOOSER_ACTION_SAVE, NULL);  gtk_window_set_destroy_with_parent (GTK_WINDOW (logfileChooserdialog), TRUE);  logfileChooserdialog_icon_pixbuf = create_pixbuf ("g2ipmsg/ipmsg.xpm");  if (logfileChooserdialog_icon_pixbuf)    {      gtk_window_set_icon (GTK_WINDOW (logfileChooserdialog), logfileChooserdialog_icon_pixbuf);      gdk_pixbuf_unref (logfileChooserdialog_icon_pixbuf);    }  gtk_window_set_type_hint (GTK_WINDOW (logfileChooserdialog), GDK_WINDOW_TYPE_HINT_DIALOG);  dialog_vbox3 = GTK_DIALOG (logfileChooserdialog)->vbox;  gtk_widget_show (dialog_vbox3);  dialog_action_area3 = GTK_DIALOG (logfileChooserdialog)->action_area;  gtk_widget_show (dialog_action_area3);  gtk_button_box_set_layout (GTK_BUTTON_BOX (dialog_action_area3), GTK_BUTTONBOX_END);  button5 = gtk_button_new_from_stock ("gtk-cancel");  gtk_widget_show (button5);  gtk_dialog_add_action_widget (GTK_DIALOG (logfileChooserdialog), button5, GTK_RESPONSE_CANCEL);  GTK_WIDGET_SET_FLAGS (button5, GTK_CAN_DEFAULT);  button6 = gtk_button_new_from_stock ("gtk-open");  gtk_widget_show (button6);  gtk_dialog_add_action_widget (GTK_DIALOG (logfileChooserdialog), button6, GTK_RESPONSE_OK);  GTK_WIDGET_SET_FLAGS (button6, GTK_CAN_DEFAULT);  /* Store pointers to all widgets, for use by lookup_widget(). */  GLADE_HOOKUP_OBJECT_NO_REF (logfileChooserdialog, logfileChooserdialog, "logfileChooserdialog");  GLADE_HOOKUP_OBJECT_NO_REF (logfileChooserdialog, dialog_vbox3, "dialog_vbox3");  GLADE_HOOKUP_OBJECT_NO_REF (logfileChooserdialog, dialog_action_area3, "dialog_action_area3");  GLADE_HOOKUP_OBJECT (logfileChooserdialog, button5, "button5");  GLADE_HOOKUP_OBJECT (logfileChooserdialog, button6, "button6");  gtk_widget_grab_default (button6);  return logfileChooserdialog;}GtkWidget*create_aboutdialog (void){  GtkWidget *aboutdialog;  /* TRANSLATORS: Replace this string with your names, one name per line. */  gchar *translators = _("translator-credits");  GdkPixbuf *aboutdialog_logo_pixbuf;  aboutdialog = gtk_about_dialog_new ();  gtk_container_set_border_width (GTK_CONTAINER (aboutdialog), 1);  gtk_about_dialog_set_version (GTK_ABOUT_DIALOG (aboutdialog), VERSION);  gtk_about_dialog_set_name (GTK_ABOUT_DIALOG (aboutdialog), _("G2ipmsg"));  gtk_about_dialog_set_copyright (GTK_ABOUT_DIALOG (aboutdialog), _("Takeharu KATO"));  gtk_about_dialog_set_license (GTK_ABOUT_DIALOG (aboutdialog), _("\t\t    GNU GENERAL PUBLIC LICENSE\n\t\t       Version 2, June 1991\n\n Copyright (C) 1989, 1991 Free Software Foundation, Inc.\n     51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA\n Everyone is permitted to copy and distribute verbatim copies\n of this license document, but changing it is not allowed.\n\n\t\t\t    Preamble\n\n  The licenses for most software are designed to take away your\nfreedom to share and change it.  By contrast, the GNU General Public\nLicense is intended to guarantee your freedom to share and change free\nsoftware--to make sure the software is free for all its users.  This\nGeneral Public License applies to most of the Free Software\nFoundation's software and to any other program whose authors commit to\nusing it.  (Some other Free Software Foundation software is covered by\nthe GNU Library General Public License instead.)  You can apply it to\nyour programs, too.\n\n  When we speak of free software, we are referring to freedom, not\nprice.  Our General Public Licenses are designed to make sure that you\nhave the freedom to distribute copies of free software (and charge for\nthis service if you wish), that you receive source code or can get it\nif you want it, that you can change the software or use pieces of it\nin new free programs; and that you know you can do these things.\n\n  To protect your rights, we need to make restrictions that forbid\nanyone to deny you these rights or to ask you to surrender the rights.\nThese restrictions translate to certain responsibilities for you if you\ndistribute copies of the software, or if you modify it.\n\n  For example, if you distribute copies of such a program, whether\ngratis or for a fee, you must give the recipients all the rights that\nyou have.  You must make sure that they, too, receive or can get the\nsource code.  And you must show them these terms so they know their\nrights.\n\n  We protect your rights with two steps: (1) copyright the software, and\n(2) offer you this license which gives you legal permission to copy,\ndistribute and/or modify the software.\n\n  Also, for each author's protection and ours, we want to make certain\nthat everyone understands that there is no warranty for this free\nsoftware.  If the software is modified by someone else and passed on, we\nwant its recipients to know that what they have is not the original, so\nthat any problems introduced by others will not reflect on the original\nauthors' reputations.\n\n  Finally, any free program is threatened constantly by software\npatents.  We wish to avoid the danger that redistributors of a free\nprogram will individually obtain patent licenses, in effect making the\nprogram proprietary.  To prevent this, we have made it clear that any\npatent must be licensed for everyone's free use or not licensed at all.\n\n  The precise terms and conditions for copying, distribution and\nmodification follow.\n\n\t\t    GNU GENERAL PUBLIC LICENSE\n   TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION\n\n  0. This License applies to any program or other work which contains\na notice placed by the copyright holder saying it may be distributed\nunder the terms of this General Public License.  The \"Program\", below,\nrefers to any such program or work, and a \"work based on the Program\"\nmeans either the Program or any derivative work under copyright law:\nthat is to say, a work containing the Program or a portion of it,\neither verbatim or with modifications and/or translated into another\nlanguage.  (Hereinafter, translation is included without limitation in\nthe term \"modification\".)  Each licensee is addressed as \"you\".\n\nActivities other than copying, distribution and modification are not\ncovered by this License; they are outside its scope.  The act of\nrunning the Program is not restricted, and the output from the Program\nis covered only if its contents constitute a work based on the\nProgram (independent of having been made by running the Program).\nWhether that is true depends on what the Program does.\n\n  1. You may copy and distribute verbatim copies of the Program's\nsource code as you receive it, in any medium, provided that you\nconspicuously and appropriately publish on each copy an appropriate\ncopyright notice and disclaimer of warranty; keep intact all the\nnotices that refer to this License and to the absence of any warranty;\nand give any other recipients of the Program a copy of this License\nalong with the Program.\n\nYou may charge a fee for the physical act of transferring a copy, and\nyou may at your option offer warranty protection in exchange for a fee.\n\n  2. You may modify your copy or copies of the Program or any portion\nof it, thus forming a work based on the Program, and copy and\ndistribute such modifications or work under the terms of Section 1\nabove, provided that you also meet all of these conditions:\n\n    a) You must cause the modified files to carry prominent notices\n    stating that you changed the files and the date of any change.\n\n    b) You must cause any work that you distribute or publish, that in\n    whole or in part contains or is derived from the Program or any\n    part thereof, to be licensed as a whole at no charge to all third\n    parties under the terms of this License.\n\n    c) If the modified program normally reads commands interactively\n    when run, you must cause it, when started running for such\n    interactive use in the most ordinary way, to print or display an\n    announcement including an appropriate copyright notice and a\n    notice that there is no warranty (or else, saying that you provide\n    a warranty) and that users may redistribute the program under\n    these conditions, and telling the user how to view a copy of this\n    License.  (Exception: if the Program itself is interactive but\n    does not normally print such an announcement, your work based on\n    the Program is not required to print an announcement.)\n\nThese requirements apply to the modified work as a whole.  If\nidentifiable sections of that work are not derived from the Program,\nand can be reasonably considered independent and separate works in\nthemselves, then this License, and its terms, do not apply to those\nsections when you distribute them as separate works.  But when you\ndistribute the same sections as part of a whole which is a work based\non the Program, the distribution of the whole must be on the terms of\nthis License, whose permissions for other licensees extend to the\nentire whole, and thus to each and every part regardless of who wrote it.\n\nThus, it is not the intent of this section to claim rights or contest\nyour rights to work written entirely by you; rather, the intent is to\nexercise the right to control the distribution of derivative or\ncollective works based on the Program.\n\nIn addition, mere aggregation of another work not based on the Program\nwith the Program (or with a work based on the Program) on a volume of\na storage or distribution medium does not bring the other work under\nthe scope of this License.\n\n  3. You may copy and distribute the Program (or a work based on it,\nunder Section 2) in object code or executable form under the terms of\nSections 1 and 2 above provided that you also do one of the following:\n\n    a) Accompany it with the complete corresponding machine-readable\n    source code, which must be distributed under the terms of Sections\n    1 a

⌨️ 快捷键说明

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