1 /* 2 * Copyright (c) 2008-2010 Lu, Chao-Ming (Tetralet). All rights reserved. 3 * 4 * This file is part of LilyTerm. 5 * 6 * LilyTerm is free software: you can redistribute it and/or modify 7 * it under the terms of the GNU General Public License as published by 8 * the Free Software Foundation, either version 3 of the License, or 9 * (at your option) any later version. 10 * 11 * LilyTerm is distributed in the hope that it will be useful, 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 * GNU General Public License for more details. 15 * 16 * You should have received a copy of the GNU General Public License 17 * along with LilyTerm. If not, see <http://www.gnu.org/licenses/>. 18 */ 19 20 #include <gtk/gtk.h> 21 #include <vte/vte.h> 22 #include <glib/gi18n.h> 23 #include <glib.h> 24 // for kill 25 #include <signal.h> 26 // for exit() and env() 27 #include <stdlib.h> 28 // for sockaddr_un 29 #include <sys/un.h> 30 31 #include "lilyterm.h" 32 33 gchar **get_argv(struct Window *win_data, gboolean *argv_need_be_free); 34 void create_utf8_child_process_failed_dialog (struct Window *win_data, gchar *message, gchar *encoding); 35 void create_child_process_failed_dialog(struct Window *win_data, gchar *message, gchar *encoding); 36 void clear_arg(struct Window *win_data); 37 void label_size_request (GtkWidget *label, GtkRequisition *requisition, struct Page *page_data); 38 gboolean vte_button_press(GtkWidget *widget, GdkEventButton *event, gpointer user_data); 39 void vte_grab_focus(GtkWidget *vte, gpointer user_data); 40 gboolean compare_win_page_encoding(GtkWidget *menu_item_encoding, gchar *encoding_str); 41 // void vte_style_set (GtkWidget *vte, GtkStyle *previous_style, gpointer user_data); 42 // void vte_size_request (GtkWidget *vte, GtkRequisition *requisition, gpointer user_data); 43 // void vte_size_allocate (GtkWidget *vte, GtkAllocation *allocation, gpointer user_data); 44 gchar *get_url (GdkEventButton *event, struct Page *page_data, gint *tag); 45 void page_data_dup(struct Page *page_data_prev, struct Page *page_data); 46 // void vte_paste_clipboard (VteTerminal *vte, gpointer user_data); 47