1 /* Console functions for X windows.
2 Copyright (C) 1996 Ben Wing.
4 This file is part of XEmacs.
6 XEmacs is free software; you can redistribute it and/or modify it
7 under the terms of the GNU General Public License as published by the
8 Free Software Foundation; either version 2, or (at your option) any
11 XEmacs is distributed in the hope that it will be useful, but WITHOUT
12 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
16 You should have received a copy of the GNU General Public License
17 along with XEmacs; see the file COPYING. If not, write to
18 the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
19 Boston, MA 02111-1307, USA. */
21 /* Synched up with: Not in FSF. */
25 Ben Wing: January 1996, for 19.14.
26 William Perry: April 2000, for 21.1 (Gtk version)
32 #include "console-gtk.h"
33 #include "process.h" /* canonicalize_host_name */
34 #include "redisplay.h" /* for display_arg */
36 DEFINE_CONSOLE_TYPE (gtk);
39 gtk_initially_selected_for_input (struct console *con)
44 /* Remember, in all of the following functions, we have to verify
45 the integrity of our input, because the generic functions don't. */
48 gtk_device_to_console_connection (Lisp_Object connection, Error_behavior errb)
50 /* Strip the trailing .# off of the connection, if it's there. */
52 if (NILP (connection))
56 connection = build_string ("gtk");
62 gtk_semi_canonicalize_console_connection (Lisp_Object connection,
69 connection = build_string ("gtk");
71 RETURN_UNGCPRO (connection);
75 gtk_canonicalize_console_connection (Lisp_Object connection, Error_behavior errb)
77 Lisp_Object hostname = Qnil;
78 struct gcpro gcpro1, gcpro2;
80 GCPRO2 (connection, hostname);
82 connection = build_string ("gtk");
84 RETURN_UNGCPRO (connection);
88 gtk_semi_canonicalize_device_connection (Lisp_Object connection,
95 connection = build_string("gtk");
97 RETURN_UNGCPRO (connection);
101 gtk_canonicalize_device_connection (Lisp_Object connection, Error_behavior errb)
106 connection = build_string("gtk");
108 RETURN_UNGCPRO (connection);
112 console_type_create_gtk (void)
114 INITIALIZE_CONSOLE_TYPE (gtk, "gtk", "console-gtk-p");
116 CONSOLE_HAS_METHOD (gtk, semi_canonicalize_console_connection);
117 CONSOLE_HAS_METHOD (gtk, canonicalize_console_connection);
118 CONSOLE_HAS_METHOD (gtk, semi_canonicalize_device_connection);
119 CONSOLE_HAS_METHOD (gtk, canonicalize_device_connection);
120 CONSOLE_HAS_METHOD (gtk, device_to_console_connection);
121 CONSOLE_HAS_METHOD (gtk, initially_selected_for_input);
122 /* CONSOLE_HAS_METHOD (gtk, delete_console); */
126 reinit_console_type_create_gtk (void)
128 REINITIALIZE_CONSOLE_TYPE (gtk);