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

📄 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 edit1_menu_uiinfo[] ={  GNOMEUIINFO_SEPARATOR,  GNOMEUIINFO_MENU_PREFERENCES_ITEM (on_preferences1_activate, 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  },  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_EDIT_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), 1);  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);  messageWinUsersEntry = gtk_entry_new ();  gtk_widget_show (messageWinUsersEntry);  gtk_container_add (GTK_CONTAINER (alignment19), messageWinUsersEntry);  gtk_tooltips_set_tip (tooltips, messageWinUsersEntry, _("current users"), NULL);  gtk_editable_set_editable (GTK_EDITABLE (messageWinUsersEntry), FALSE);  gtk_entry_set_invisible_char (GTK_ENTRY (messageWinUsersEntry), 8226);  messageWinUserNumFrameLabel = gtk_label_new (_("<b>Users</b>"));  gtk_widget_show (messageWinUserNumFrameLabel);  gtk_frame_set_label_widget (GTK_FRAME (frame15), messageWinUserNumFrameLabel);  gtk_label_set_use_markup (GTK_LABEL (messageWinUserNumFrameLabel), TRUE);  messageWinUpdateBtn = gtk_button_new_from_stock ("gtk-refresh");  gtk_widget_show (messageWinUpdateBtn);  gtk_box_pack_start (GTK_BOX (vbox17), messageWinUpdateBtn, FALSE, FALSE, 0);  gtk_tooltips_set_tip (tooltips, messageWinUpdateBtn, _("Please push this button to update the user list."), NULL);  scrolledwindow11 = gtk_scrolled_window_new (NULL, NULL);  gtk_widget_show (scrolledwindow11);  gtk_paned_pack2 (GTK_PANED (vpaned1), scrolledwindow11, TRUE, TRUE);  gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolledwindow11), GTK_POLICY_AUTOMATIC, GTK_POLICY_ALWAYS);  gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (scrolledwindow11), GTK_SHADOW_IN);  textview1 = gtk_text_view_new ();  gtk_widget_show (textview1);  gtk_container_add (GTK_CONTAINER (scrolledwindow11), textview1);  gtk_widget_set_size_request (textview1, -1, 120);  gtk_tooltips_set_tip (tooltips, textview1, _("Please edit your message or drop attachment files."), NULL);  hbox1 = gtk_hbox_new (TRUE, 0);  gtk_widget_show (hbox1);  gtk_box_pack_start (GTK_BOX (vbox1), hbox1, FALSE, FALSE, 0);  gtk_widget_set_size_request (hbox1, -1, 40);  messageWinCloseBtn = gtk_button_new_from_stock ("gtk-close");  gtk_widget_show (messageWinCloseBtn);  gtk_box_pack_start (GTK_BOX (hbox1), messageWinCloseBtn, FALSE, FALSE, 0);  sendBtn = gtk_button_new_with_mnemonic (_("SEND"));  gtk_widget_show (sendBtn);  gtk_box_pack_start (GTK_BOX (hbox1), sendBtn, FALSE, FALSE, 0);  gtk_widget_set_size_request (sendBtn, 80, -1);  gtk_tooltips_set_tip (tooltips, sendBtn, _("Please push this button to send the message."), NULL);  hbox20 = gtk_hbox_new (FALSE, 0);  gtk_widget_show (hbox20);  gtk_box_pack_start (GTK_BOX (hbox1), hbox20, TRUE, TRUE, 0);  encloseCheckBtn = gtk_check_button_new_with_mnemonic (_("enclose message"));  gtk_widget_show (encloseCheckBtn);  gtk_box_pack_start (GTK_BOX (hbox20), encloseCheckBtn, FALSE, FALSE, 0);  gtk_tooltips_set_tip (tooltips, encloseCheckBtn, _("Check here to make this message sealed."), NULL);  g_signal_connect ((gpointer) messageWindow, "drag_data_received",                    G_CALLBACK (on_app1_drag_data_received),                    NULL);  g_signal_connect ((gpointer) messageWindow, "destroy",                    G_CALLBACK (on_app1_destroy),                    NULL);  g_signal_connect ((gpointer) messageWindow, "show",                    G_CALLBACK (on_messageWindow_show),                    NULL);  g_signal_connect ((gpointer) messageWindow, "size_allocate",                    G_CALLBACK (on_messageWindow_size_allocate),                    NULL);  g_signal_connect ((gpointer) messageWindow, "key_release_event",                    G_CALLBACK (on_messageWindow_key_release_event),                    NULL);  g_signal_connect ((gpointer) vpaned1, "drag_data_received",                    G_CALLBACK (on_vpaned1_drag_data_received),                    NULL);  g_signal_connect ((gpointer) messageUserTree, "drag_data_received",                    G_CALLBACK (on_messageUserTree_drag_data_received),

⌨️ 快捷键说明

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