714
|
1 /* toolbar implementation -- GTK interface.
|
462
|
2 Copyright (C) 1995 Board of Trustees, University of Illinois.
|
|
3 Copyright (C) 1995 Sun Microsystems, Inc.
|
|
4 Copyright (C) 1995, 1996 Ben Wing.
|
|
5 Copyright (C) 1996 Chuck Thompson.
|
|
6
|
|
7 This file is part of XEmacs.
|
|
8
|
|
9 XEmacs is free software; you can redistribute it and/or modify it
|
|
10 under the terms of the GNU General Public License as published by the
|
|
11 Free Software Foundation; either version 2, or (at your option) any
|
|
12 later version.
|
|
13
|
|
14 XEmacs is distributed in the hope that it will be useful, but WITHOUT
|
|
15 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|
16 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
|
17 for more details.
|
|
18
|
|
19 You should have received a copy of the GNU General Public License
|
|
20 along with XEmacs; see the file COPYING. If not, write to
|
|
21 the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
|
22 Boston, MA 02111-1307, USA. */
|
|
23
|
|
24 /* Synched up with: Not in FSF. */
|
|
25
|
|
26 #include <config.h>
|
|
27 #include "lisp.h"
|
714
|
28 #include "frame.h"
|
|
29 #include "toolbar-common.h"
|
462
|
30 #include "console-gtk.h"
|
|
31
|
714
|
32 /* We should really create a 'common' console type and fill it with
|
|
33 ** all the shared code. We would then just use
|
|
34 ** CONSOLE_INHERITS_METHOD(x,common,blah)
|
|
35 */
|
|
36 #define gtk_output_frame_toolbars common_output_frame_toolbars
|
|
37 #define gtk_output_toolbar_button common_output_toolbar_button
|
|
38 #define gtk_redraw_exposed_toolbars common_redraw_exposed_toolbars
|
|
39 #define gtk_redraw_frame_toolbars common_redraw_frame_toolbars
|
462
|
40
|
|
41
|
|
42 static void
|
|
43 gtk_initialize_frame_toolbars (struct frame *f)
|
|
44 {
|
|
45 }
|
|
46
|
|
47 /* This only calls one function but we go ahead and create this in
|
|
48 case we ever do decide that we need to do more work. */
|
|
49 static void
|
|
50 gtk_free_frame_toolbars (struct frame *f)
|
|
51 {
|
|
52 }
|
|
53
|
|
54
|
|
55 /************************************************************************/
|
|
56 /* initialization */
|
|
57 /************************************************************************/
|
|
58
|
|
59 void
|
|
60 console_type_create_toolbar_gtk (void)
|
|
61 {
|
|
62 CONSOLE_HAS_METHOD (gtk, output_frame_toolbars);
|
|
63 CONSOLE_HAS_METHOD (gtk, initialize_frame_toolbars);
|
|
64 CONSOLE_HAS_METHOD (gtk, free_frame_toolbars);
|
|
65 CONSOLE_HAS_METHOD (gtk, output_toolbar_button);
|
|
66 CONSOLE_HAS_METHOD (gtk, redraw_exposed_toolbars);
|
|
67 CONSOLE_HAS_METHOD (gtk, redraw_frame_toolbars);
|
|
68 }
|