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

📄 interface.c

📁 linux下的飞鸽传书 日本人设计 使用非常方便
💻 C
📖 第 1 页 / 共 5 页
字号:
/* * DO NOT EDIT THIS FILE - it is generated by Glade. */#ifdef HAVE_CONFIG_H#  include <config.h>#endif#include <sys/types.h>#include <sys/stat.h>#include <unistd.h>#include <string.h>#include <stdio.h>#include <bonobo.h>#include <gnome.h>#include "callbacks.h"#include "interface.h"#include "support.h"#define GLADE_HOOKUP_OBJECT(component,widget,name) \  g_object_set_data_full (G_OBJECT (component), name, \    gtk_widget_ref (widget), (GDestroyNotify) gtk_widget_unref)#define GLADE_HOOKUP_OBJECT_NO_REF(component,widget,name) \  g_object_set_data (G_OBJECT (component), name, widget)static GnomeUIInfo file1_menu_uiinfo[] ={  {    GNOME_APP_UI_ITEM, N_("Attachment"),    NULL,    (gpointer) on_attachment1_activate, NULL, NULL,    GNOME_APP_PIXMAP_STOCK, "gtk-file",    0, (GdkModifierType) 0, NULL  },  GNOMEUIINFO_SEPARATOR,  GNOMEUIINFO_MENU_CLOSE_ITEM (on_close1_activate, NULL),  GNOMEUIINFO_END};static GnomeUIInfo sort_filter1_menu_uiinfo[] ={  {    GNOME_APP_UI_ITEM, N_("Set priority as 1"),    NULL,    (gpointer) on_menu_set_priority_as_1_activate, NULL, NULL,    GNOME_APP_PIXMAP_NONE, NULL,    0, (GdkModifierType) 0, NULL  },  {    GNOME_APP_UI_ITEM, N_("Set priority as 2"),    NULL,    (gpointer) on_menu_set_priority_as_2_activate, NULL, NULL,    GNOME_APP_PIXMAP_NONE, NULL,    0, (GdkModifierType) 0, NULL  },  {    GNOME_APP_UI_ITEM, N_("Set priority as 3"),    NULL,    (gpointer) on_menu_set_priority_as_3_activate, NULL, NULL,    GNOME_APP_PIXMAP_NONE, NULL,    0, (GdkModifierType) 0, NULL  },  {    GNOME_APP_UI_ITEM, N_("Set priority as 4"),    NULL,    (gpointer) on_menu_set_priority_as_4_activate, NULL, NULL,    GNOME_APP_PIXMAP_NONE, NULL,    0, (GdkModifierType) 0, NULL  },  {    GNOME_APP_UI_ITEM, N_("Set them as default"),    NULL,    (gpointer) on_menu_set_them_as_default_activate, NULL, NULL,    GNOME_APP_PIXMAP_NONE, NULL,    0, (GdkModifierType) 0, NULL  },  {    GNOME_APP_UI_ITEM, N_("Set them invisible item"),    NULL,    (gpointer) on_menu_set_them_invisible_item_activate, NULL, NULL,    GNOME_APP_PIXMAP_NONE, NULL,    0, (GdkModifierType) 0, NULL  },  GNOMEUIINFO_SEPARATOR,  {    GNOME_APP_UI_ITEM, N_("Show invisible items"),    NULL,    (gpointer) on_menu_show_invisible_items_activate, NULL, NULL,    GNOME_APP_PIXMAP_NONE, NULL,    0, (GdkModifierType) 0, NULL  },  {    GNOME_APP_UI_ITEM, N_("Set all as default"),    NULL,    (gpointer) on_menu_set_all_as_default_activate, NULL, NULL,    GNOME_APP_PIXMAP_NONE, NULL,    0, (GdkModifierType) 0, NULL  },  GNOMEUIINFO_END};static GnomeUIInfo edit1_menu_uiinfo[] ={  GNOMEUIINFO_SEPARATOR,  GNOMEUIINFO_MENU_PREFERENCES_ITEM (on_preferences1_activate, NULL),  GNOMEUIINFO_SEPARATOR,  {    GNOME_APP_UI_SUBTREE, N_("Sort filter"),    NULL,    sort_filter1_menu_uiinfo, NULL, NULL,    GNOME_APP_PIXMAP_STOCK, "gtk-sort-ascending",    0, (GdkModifierType) 0, NULL  },  {    GNOME_APP_UI_ITEM, N_("User list view config"),    NULL,    (gpointer) on_menu_user_list_view_config_activate, NULL, NULL,    GNOME_APP_PIXMAP_STOCK, "gtk-preferences",    0, (GdkModifierType) 0, NULL  },  {    GNOME_APP_UI_ITEM, N_("Save list headers state"),    NULL,    (gpointer) on_menu_save_list_headers_state_activate, NULL, NULL,    GNOME_APP_PIXMAP_STOCK, "gtk-apply",    0, (GdkModifierType) 0, NULL  },  GNOMEUIINFO_END};static GnomeUIInfo update1_menu_uiinfo[] ={  {    GNOME_APP_UI_ITEM, N_("Update"),    NULL,    (gpointer) on_update2_activate, NULL, NULL,    GNOME_APP_PIXMAP_STOCK, "gtk-refresh",    0, (GdkModifierType) 0, NULL  },  {    GNOME_APP_UI_ITEM, N_("get version"),    NULL,    (gpointer) on_get_version1_activate, NULL, NULL,    GNOME_APP_PIXMAP_STOCK, "gtk-dialog-question",    0, (GdkModifierType) 0, NULL  },  {    GNOME_APP_UI_ITEM, N_("get absence info"),    NULL,    (gpointer) on_absence_info1_activate, NULL, NULL,    GNOME_APP_PIXMAP_STOCK, "gtk-dialog-question",    0, (GdkModifierType) 0, NULL  },  GNOMEUIINFO_END};static GnomeUIInfo help1_menu_uiinfo[] ={  GNOMEUIINFO_MENU_ABOUT_ITEM (on_about1_activate, NULL),  GNOMEUIINFO_END};static GnomeUIInfo menubar1_uiinfo[] ={  GNOMEUIINFO_MENU_FILE_TREE (file1_menu_uiinfo),  GNOMEUIINFO_SEPARATOR,  GNOMEUIINFO_MENU_SETTINGS_TREE (edit1_menu_uiinfo),  GNOMEUIINFO_MENU_VIEW_TREE (update1_menu_uiinfo),  GNOMEUIINFO_MENU_HELP_TREE (help1_menu_uiinfo),  GNOMEUIINFO_END};GtkWidget*create_messageWindow (void){  GtkWidget *messageWindow;  GdkPixbuf *messageWindow_icon_pixbuf;  GtkWidget *bonobodock1;  GtkWidget *vbox1;  GtkWidget *vpaned1;  GtkWidget *hbox21;  GtkWidget *scrolledwindow13;  GtkWidget *messageUserTree;  GtkWidget *vbox17;  GtkWidget *frame15;  GtkWidget *alignment19;  GtkWidget *messageWinUsersEntry;  GtkWidget *messageWinUserNumFrameLabel;  GtkWidget *messageWinUpdateBtn;  GtkWidget *scrolledwindow11;  GtkWidget *textview1;  GtkWidget *hbox1;  GtkWidget *messageWinCloseBtn;  GtkWidget *sendBtn;  GtkWidget *hbox20;  GtkWidget *encloseCheckBtn;  GtkTooltips *tooltips;  tooltips = gtk_tooltips_new ();  messageWindow = gnome_app_new ("G2ipmsg", _("g2ipmsg"));  gtk_widget_set_extension_events (messageWindow, GDK_EXTENSION_EVENTS_ALL);  gtk_window_set_destroy_with_parent (GTK_WINDOW (messageWindow), TRUE);  messageWindow_icon_pixbuf = create_pixbuf ("g2ipmsg/ipmsg.xpm");  if (messageWindow_icon_pixbuf)    {      gtk_window_set_icon (GTK_WINDOW (messageWindow), messageWindow_icon_pixbuf);      gdk_pixbuf_unref (messageWindow_icon_pixbuf);    }  bonobodock1 = GNOME_APP (messageWindow)->dock;  gtk_widget_show (bonobodock1);  gnome_app_create_menus (GNOME_APP (messageWindow), menubar1_uiinfo);  vbox1 = gtk_vbox_new (FALSE, 0);  gtk_widget_show (vbox1);  gnome_app_set_contents (GNOME_APP (messageWindow), vbox1);  vpaned1 = gtk_vpaned_new ();  gtk_widget_show (vpaned1);  gtk_box_pack_start (GTK_BOX (vbox1), vpaned1, TRUE, TRUE, 0);  gtk_paned_set_position (GTK_PANED (vpaned1), 134);  hbox21 = gtk_hbox_new (FALSE, 0);  gtk_widget_show (hbox21);  gtk_paned_pack1 (GTK_PANED (vpaned1), hbox21, TRUE, TRUE);  scrolledwindow13 = gtk_scrolled_window_new (NULL, NULL);  gtk_widget_show (scrolledwindow13);  gtk_box_pack_start (GTK_BOX (hbox21), scrolledwindow13, TRUE, TRUE, 0);  gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolledwindow13), GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC);  gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (scrolledwindow13), GTK_SHADOW_IN);  messageUserTree = gtk_tree_view_new ();  gtk_widget_show (messageUserTree);  gtk_container_add (GTK_CONTAINER (scrolledwindow13), messageUserTree);  gtk_container_set_border_width (GTK_CONTAINER (messageUserTree), 2);  gtk_tooltips_set_tip (tooltips, messageUserTree, _("Please select receivers or drop attachment files."), NULL);  gtk_tree_view_set_reorderable (GTK_TREE_VIEW (messageUserTree), TRUE);  vbox17 = gtk_vbox_new (FALSE, 0);  gtk_widget_show (vbox17);  gtk_box_pack_start (GTK_BOX (hbox21), vbox17, FALSE, FALSE, 4);  frame15 = gtk_frame_new (NULL);  gtk_widget_show (frame15);  gtk_box_pack_start (GTK_BOX (vbox17), frame15, FALSE, FALSE, 0);  gtk_widget_set_size_request (frame15, 40, 78);  gtk_container_set_border_width (GTK_CONTAINER (frame15), 1);  alignment19 = gtk_alignment_new (0.5, 0.5, 1, 1);  gtk_widget_show (alignment19);  gtk_container_add (GTK_CONTAINER (frame15), alignment19);  gtk_alignment_set_padding (GTK_ALIGNMENT (alignment19), 0, 0, 12, 0);

⌨️ 快捷键说明

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