annotate src/ui-byhand.c @ 5898:2aeaf9bc7175

Regenerate configure.
author Stephen J. Turnbull <stephen@xemacs.org>
date Tue, 05 May 2015 04:06:37 +0900
parents 56144c8593a8
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
5287
cd167465bf69 More permission consistency.
Stephen J. Turnbull <stephen@xemacs.org>
parents: 5231
diff changeset
1 /* ui-byhand.c --- hand-coded GTK functions
cd167465bf69 More permission consistency.
Stephen J. Turnbull <stephen@xemacs.org>
parents: 5231
diff changeset
2
cd167465bf69 More permission consistency.
Stephen J. Turnbull <stephen@xemacs.org>
parents: 5231
diff changeset
3 Copyright (C) 2000, 2001 William M. Perry
cd167465bf69 More permission consistency.
Stephen J. Turnbull <stephen@xemacs.org>
parents: 5231
diff changeset
4
cd167465bf69 More permission consistency.
Stephen J. Turnbull <stephen@xemacs.org>
parents: 5231
diff changeset
5 I really wish this entire file could go away, but there is
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
6 currently no way to do the following in the Foreign Function
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
7 Interface:
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
8
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
9 1) Deal with return values in the parameter list (ie: int *foo)
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
10
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
11 So we have to code a few functions by hand. Ick.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
12
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
13 William M. Perry 5/8/00
4709
db7068430402 Add explicit GPL v2 or later notices to Bill Perry's code, where such notices
Jerry James <james@xemacs.org>
parents: 2367
diff changeset
14
db7068430402 Add explicit GPL v2 or later notices to Bill Perry's code, where such notices
Jerry James <james@xemacs.org>
parents: 2367
diff changeset
15 This file is part of XEmacs.
db7068430402 Add explicit GPL v2 or later notices to Bill Perry's code, where such notices
Jerry James <james@xemacs.org>
parents: 2367
diff changeset
16
5405
2aa9cd456ae7 Move src/ to GPLv3.
Mike Sperber <sperber@deinprogramm.de>
parents: 5231
diff changeset
17 XEmacs is free software: you can redistribute it and/or modify it
4709
db7068430402 Add explicit GPL v2 or later notices to Bill Perry's code, where such notices
Jerry James <james@xemacs.org>
parents: 2367
diff changeset
18 under the terms of the GNU General Public License as published by the
5405
2aa9cd456ae7 Move src/ to GPLv3.
Mike Sperber <sperber@deinprogramm.de>
parents: 5231
diff changeset
19 Free Software Foundation, either version 3 of the License, or (at your
2aa9cd456ae7 Move src/ to GPLv3.
Mike Sperber <sperber@deinprogramm.de>
parents: 5231
diff changeset
20 option) any later version.
4709
db7068430402 Add explicit GPL v2 or later notices to Bill Perry's code, where such notices
Jerry James <james@xemacs.org>
parents: 2367
diff changeset
21
db7068430402 Add explicit GPL v2 or later notices to Bill Perry's code, where such notices
Jerry James <james@xemacs.org>
parents: 2367
diff changeset
22 XEmacs is distributed in the hope that it will be useful, but WITHOUT
db7068430402 Add explicit GPL v2 or later notices to Bill Perry's code, where such notices
Jerry James <james@xemacs.org>
parents: 2367
diff changeset
23 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
db7068430402 Add explicit GPL v2 or later notices to Bill Perry's code, where such notices
Jerry James <james@xemacs.org>
parents: 2367
diff changeset
24 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
db7068430402 Add explicit GPL v2 or later notices to Bill Perry's code, where such notices
Jerry James <james@xemacs.org>
parents: 2367
diff changeset
25 for more details.
db7068430402 Add explicit GPL v2 or later notices to Bill Perry's code, where such notices
Jerry James <james@xemacs.org>
parents: 2367
diff changeset
26
db7068430402 Add explicit GPL v2 or later notices to Bill Perry's code, where such notices
Jerry James <james@xemacs.org>
parents: 2367
diff changeset
27 You should have received a copy of the GNU General Public License
5405
2aa9cd456ae7 Move src/ to GPLv3.
Mike Sperber <sperber@deinprogramm.de>
parents: 5231
diff changeset
28 along with XEmacs. If not, see <http://www.gnu.org/licenses/>. */
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
29
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
30 #include "gui.h"
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
31
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
32 DEFUN ("gtk-box-query-child-packing", Fgtk_box_query_child_packing, 2, 2,0, /*
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
33 Returns information about how CHILD is packed into BOX.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
34 Return value is a list of (EXPAND FILL PADDING PACK_TYPE).
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
35 */
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
36 (box, child))
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
37 {
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
38 gboolean expand, fill;
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
39 guint padding;
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
40 GtkPackType pack_type;
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
41 Lisp_Object result = Qnil;
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
42
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
43 CHECK_GTK_OBJECT (box);
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
44 CHECK_GTK_OBJECT (child);
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
45
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
46 if (!GTK_IS_BOX (XGTK_OBJECT (box)->object))
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
47 {
563
183866b06e0b [xemacs-hg @ 2001-05-24 07:50:48 by ben]
ben
parents: 462
diff changeset
48 wtaerror ("Object is not a GtkBox", box);
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
49 }
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
50
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
51 if (!GTK_IS_WIDGET (XGTK_OBJECT (child)->object))
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
52 {
563
183866b06e0b [xemacs-hg @ 2001-05-24 07:50:48 by ben]
ben
parents: 462
diff changeset
53 wtaerror ("Child is not a GtkWidget", child);
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
54 }
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
55
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
56 gtk_box_query_child_packing (GTK_BOX (XGTK_OBJECT (box)->object),
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
57 GTK_WIDGET (XGTK_OBJECT (child)->object),
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
58 &expand, &fill, &padding, &pack_type);
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
59
5581
56144c8593a8 Mechanically change INT to FIXNUM in our sources.
Aidan Kehoe <kehoea@parhasard.net>
parents: 5420
diff changeset
60 result = Fcons (make_fixnum (pack_type), result);
56144c8593a8 Mechanically change INT to FIXNUM in our sources.
Aidan Kehoe <kehoea@parhasard.net>
parents: 5420
diff changeset
61 result = Fcons (make_fixnum (padding), result);
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
62 result = Fcons (fill ? Qt : Qnil, result);
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
63 result = Fcons (expand ? Qt : Qnil, result);
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
64
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
65 return (result);
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
66 }
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
67
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
68 /* void gtk_button_box_get_child_size_default (gint *min_width, gint *min_height); */
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
69 DEFUN ("gtk-button-box-get-child-size-default",
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
70 Fgtk_button_box_get_child_size_default, 0, 0, 0, /*
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
71 Return a cons cell (WIDTH . HEIGHT) of the default button box child size.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
72 */
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
73 ())
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
74 {
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
75 gint width, height;
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
76
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
77 gtk_button_box_get_child_size_default (&width, &height);
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
78
5581
56144c8593a8 Mechanically change INT to FIXNUM in our sources.
Aidan Kehoe <kehoea@parhasard.net>
parents: 5420
diff changeset
79 return (Fcons (make_fixnum (width), make_fixnum (height)));
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
80 }
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
81
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
82 /* void gtk_button_box_get_child_ipadding_default (gint *ipad_x, gint *ipad_y); */
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
83 DEFUN ("gtk-button-box-get-child-ipadding-default",
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
84 Fgtk_button_box_get_child_ipadding_default, 0, 0, 0, /*
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
85 Return a cons cell (X . Y) of the default button box ipadding.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
86 */
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
87 ())
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
88 {
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
89 gint x, y;
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
90
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
91 gtk_button_box_get_child_ipadding_default (&x, &y);
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
92
5581
56144c8593a8 Mechanically change INT to FIXNUM in our sources.
Aidan Kehoe <kehoea@parhasard.net>
parents: 5420
diff changeset
93 return (Fcons (make_fixnum (x), make_fixnum (y)));
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
94 }
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
95
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
96 /* void gtk_button_box_get_child_size (GtkButtonBox *widget,
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
97 gint *min_width, gint *min_height); */
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
98 DEFUN ("gtk-button-box-get-child-size", Fgtk_button_box_get_child_size, 1, 1, 0, /*
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
99 Get the current size of a child in the buttonbox BOX.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
100 */
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
101 (box))
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
102 {
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
103 gint width, height;
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
104
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
105 CHECK_GTK_OBJECT (box);
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
106
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
107 if (!GTK_IS_BUTTON_BOX (XGTK_OBJECT (box)->object))
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
108 {
563
183866b06e0b [xemacs-hg @ 2001-05-24 07:50:48 by ben]
ben
parents: 462
diff changeset
109 wtaerror ("Not a GtkBox object", box);
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
110 }
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
111
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
112 gtk_button_box_get_child_size (GTK_BUTTON_BOX (XGTK_OBJECT (box)->object),
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
113 &width, &height);
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
114
5581
56144c8593a8 Mechanically change INT to FIXNUM in our sources.
Aidan Kehoe <kehoea@parhasard.net>
parents: 5420
diff changeset
115 return (Fcons (make_fixnum (width), make_fixnum (height)));
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
116 }
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
117
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
118 /* void gtk_button_box_get_child_ipadding (GtkButtonBox *widget, gint *ipad_x, gint *ipad_y); */
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
119 DEFUN ("gtk-button-box-get-child-ipadding",
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
120 Fgtk_button_box_get_child_ipadding, 1, 1, 0, /*
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
121 Return a cons cell (X . Y) of the current buttonbox BOX ipadding.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
122 */
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
123 (box))
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
124 {
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
125 gint x, y;
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
126
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
127 CHECK_GTK_OBJECT (box);
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
128
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
129 if (!GTK_IS_BUTTON_BOX (XGTK_OBJECT (box)->object))
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
130 {
563
183866b06e0b [xemacs-hg @ 2001-05-24 07:50:48 by ben]
ben
parents: 462
diff changeset
131 wtaerror ("Not a GtkBox object", box);
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
132 }
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
133
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
134 gtk_button_box_get_child_ipadding (GTK_BUTTON_BOX (XGTK_OBJECT (box)->object),
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
135 &x, &y);
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
136
5581
56144c8593a8 Mechanically change INT to FIXNUM in our sources.
Aidan Kehoe <kehoea@parhasard.net>
parents: 5420
diff changeset
137 return (Fcons (make_fixnum (x), make_fixnum (y)));
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
138 }
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
139
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
140 /*void gtk_calendar_get_date (GtkCalendar *calendar,
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
141 guint *year,
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
142 guint *month,
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
143 guint *day);
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
144 */
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
145 DEFUN ("gtk-calendar-get-date", Fgtk_calendar_get_date, 1, 1, 0, /*
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
146 Return a list of (YEAR MONTH DAY) from the CALENDAR object.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
147 */
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
148 (calendar))
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
149 {
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
150 guint year, month, day;
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
151
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
152 CHECK_GTK_OBJECT (calendar);
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
153
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
154 if (!GTK_IS_CALENDAR (XGTK_OBJECT (calendar)->object))
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
155 {
563
183866b06e0b [xemacs-hg @ 2001-05-24 07:50:48 by ben]
ben
parents: 462
diff changeset
156 wtaerror ("Not a GtkCalendar object", calendar);
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
157 }
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
158
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
159 gtk_calendar_get_date (GTK_CALENDAR (XGTK_OBJECT (calendar)->object),
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
160 &year, &month, &day);
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
161
5581
56144c8593a8 Mechanically change INT to FIXNUM in our sources.
Aidan Kehoe <kehoea@parhasard.net>
parents: 5420
diff changeset
162 return (list3 (make_fixnum (year), make_fixnum (month), make_fixnum (day)));
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
163 }
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
164
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
165 /* gint gtk_clist_get_text (GtkCList *clist,
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
166 gint row,
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
167 gint column,
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
168 gchar **text);
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
169 */
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
170 DEFUN ("gtk-clist-get-text", Fgtk_clist_get_text, 3, 3, 0, /*
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
171 Returns the text from GtkCList OBJ cell at coordinates ROW, COLUMN.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
172 */
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
173 (obj, row, column))
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
174 {
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
175 gchar *text = NULL;
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
176 Lisp_Object rval = Qnil;
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
177
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
178 CHECK_GTK_OBJECT (obj);
5581
56144c8593a8 Mechanically change INT to FIXNUM in our sources.
Aidan Kehoe <kehoea@parhasard.net>
parents: 5420
diff changeset
179 CHECK_FIXNUM (row);
56144c8593a8 Mechanically change INT to FIXNUM in our sources.
Aidan Kehoe <kehoea@parhasard.net>
parents: 5420
diff changeset
180 CHECK_FIXNUM (column);
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
181
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
182 if (!GTK_IS_CLIST (XGTK_OBJECT (obj)->object))
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
183 {
563
183866b06e0b [xemacs-hg @ 2001-05-24 07:50:48 by ben]
ben
parents: 462
diff changeset
184 wtaerror ("Object is not a GtkCList", obj);
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
185 }
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
186
5581
56144c8593a8 Mechanically change INT to FIXNUM in our sources.
Aidan Kehoe <kehoea@parhasard.net>
parents: 5420
diff changeset
187 gtk_clist_get_text (GTK_CLIST (XGTK_OBJECT (obj)->object), XFIXNUM (row), XFIXNUM (column), &text);
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
188
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
189 if (text)
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
190 {
4953
304aebb79cd3 function renamings to track names of char typedefs
Ben Wing <ben@xemacs.org>
parents: 4709
diff changeset
191 rval = build_cistring (text);
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
192 /* NOTE: This is NOT a memory leak. GtkCList returns a pointer
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
193 to internally used memory, not a copy of it.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
194 g_free (text);
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
195 */
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
196 }
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
197
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
198 return (rval);
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
199 }
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
200
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
201 /* gint gtk_clist_get_selection_info (GtkCList *clist,
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
202 gint x,
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
203 gint y,
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
204 gint *row,
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
205 gint *column); */
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
206 DEFUN ("gtk-clist-get-selection-info", Fgtk_clist_get_selection, 3, 3, 0, /*
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
207 Returns a cons cell of (ROW . COLUMN) of the GtkCList OBJ at coordinates X, Y.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
208 */
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
209 (obj, x, y))
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
210 {
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
211 gint row, column;
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
212
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
213 CHECK_GTK_OBJECT (obj);
5581
56144c8593a8 Mechanically change INT to FIXNUM in our sources.
Aidan Kehoe <kehoea@parhasard.net>
parents: 5420
diff changeset
214 CHECK_FIXNUM (x);
56144c8593a8 Mechanically change INT to FIXNUM in our sources.
Aidan Kehoe <kehoea@parhasard.net>
parents: 5420
diff changeset
215 CHECK_FIXNUM (y);
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
216
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
217 if (!GTK_IS_CLIST (XGTK_OBJECT (obj)->object))
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
218 {
563
183866b06e0b [xemacs-hg @ 2001-05-24 07:50:48 by ben]
ben
parents: 462
diff changeset
219 wtaerror ("Object is not a GtkCList", obj);
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
220 }
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
221
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
222 gtk_clist_get_selection_info (GTK_CLIST (XGTK_OBJECT (obj)->object),
5581
56144c8593a8 Mechanically change INT to FIXNUM in our sources.
Aidan Kehoe <kehoea@parhasard.net>
parents: 5420
diff changeset
223 XFIXNUM (x), XFIXNUM (y), &row, &column);
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
224
5581
56144c8593a8 Mechanically change INT to FIXNUM in our sources.
Aidan Kehoe <kehoea@parhasard.net>
parents: 5420
diff changeset
225 return (Fcons (make_fixnum (row), make_fixnum (column)));
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
226 }
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
227
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
228 DEFUN ("gtk-clist-get-pixmap", Fgtk_clist_get_pixmap, 3, 3, 0, /*
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
229 Return a cons of (pixmap . mask) at ROW,COLUMN in CLIST.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
230 */
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
231 (clist, row, column))
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
232 {
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
233 GdkPixmap *pixmap = NULL;
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
234 GdkBitmap *mask = NULL;
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
235
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
236 CHECK_GTK_OBJECT (clist);
5581
56144c8593a8 Mechanically change INT to FIXNUM in our sources.
Aidan Kehoe <kehoea@parhasard.net>
parents: 5420
diff changeset
237 CHECK_FIXNUM (row);
56144c8593a8 Mechanically change INT to FIXNUM in our sources.
Aidan Kehoe <kehoea@parhasard.net>
parents: 5420
diff changeset
238 CHECK_FIXNUM (column);
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
239
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
240 if (!GTK_IS_CLIST (XGTK_OBJECT (clist)->object))
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
241 {
563
183866b06e0b [xemacs-hg @ 2001-05-24 07:50:48 by ben]
ben
parents: 462
diff changeset
242 wtaerror ("Object is not a GtkCList", clist);
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
243 }
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
244
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
245 gtk_clist_get_pixmap (GTK_CLIST (XGTK_OBJECT (clist)->object),
5581
56144c8593a8 Mechanically change INT to FIXNUM in our sources.
Aidan Kehoe <kehoea@parhasard.net>
parents: 5420
diff changeset
246 XFIXNUM (row), XFIXNUM (column),
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
247 &pixmap, &mask);
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
248
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
249 return (Fcons (pixmap ? build_gtk_boxed (pixmap, GTK_TYPE_GDK_WINDOW) : Qnil,
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
250 mask ? build_gtk_boxed (mask, GTK_TYPE_GDK_WINDOW) : Qnil));
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
251 }
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
252
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
253 DEFUN ("gtk-clist-get-pixtext", Fgtk_clist_get_pixtext, 3, 3, 0, /*
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
254 Return a list of (pixmap mask text) at ROW,COLUMN in CLIST.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
255 */
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
256 (clist, row, column))
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
257 {
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
258 GdkPixmap *pixmap = NULL;
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
259 GdkBitmap *mask = NULL;
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
260 char *text = NULL;
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
261 guint8 spacing;
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
262
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
263 CHECK_GTK_OBJECT (clist);
5581
56144c8593a8 Mechanically change INT to FIXNUM in our sources.
Aidan Kehoe <kehoea@parhasard.net>
parents: 5420
diff changeset
264 CHECK_FIXNUM (row);
56144c8593a8 Mechanically change INT to FIXNUM in our sources.
Aidan Kehoe <kehoea@parhasard.net>
parents: 5420
diff changeset
265 CHECK_FIXNUM (column);
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
266
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
267 if (!GTK_IS_CLIST (XGTK_OBJECT (clist)->object))
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
268 {
563
183866b06e0b [xemacs-hg @ 2001-05-24 07:50:48 by ben]
ben
parents: 462
diff changeset
269 wtaerror ("Object is not a GtkCList", clist);
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
270 }
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
271
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
272 gtk_clist_get_pixtext (GTK_CLIST (XGTK_OBJECT (clist)->object),
5581
56144c8593a8 Mechanically change INT to FIXNUM in our sources.
Aidan Kehoe <kehoea@parhasard.net>
parents: 5420
diff changeset
273 XFIXNUM (row), XFIXNUM (column), &text, &spacing,
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
274 &pixmap, &mask);
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
275
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
276 return (list3 (pixmap ? build_gtk_boxed (pixmap, GTK_TYPE_GDK_WINDOW) : Qnil,
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
277 mask ? build_gtk_boxed (mask, GTK_TYPE_GDK_WINDOW) : Qnil,
4953
304aebb79cd3 function renamings to track names of char typedefs
Ben Wing <ben@xemacs.org>
parents: 4709
diff changeset
278 (text && text[0]) ? build_cistring (text) : Qnil));
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
279 }
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
280
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
281 /* void gtk_color_selection_get_color(GtkColorSelection *colorsel, gdouble *color); */
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
282 DEFUN ("gtk-color-selection-get-color", Fgtk_color_selection_get_color, 1, 1, 0, /*
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
283 Return a list of (RED GREEN BLUE ALPHA) from the GtkColorSelection OBJECT.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
284 */
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
285 (object))
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
286 {
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
287 gdouble rgba[4];
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
288
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
289 CHECK_GTK_OBJECT (object);
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
290
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
291 if (!GTK_IS_COLOR_SELECTION (XGTK_OBJECT (object)->object))
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
292 {
563
183866b06e0b [xemacs-hg @ 2001-05-24 07:50:48 by ben]
ben
parents: 462
diff changeset
293 wtaerror ("Object is not a GtkColorSelection", object);
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
294 }
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
295
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
296 gtk_color_selection_get_color (GTK_COLOR_SELECTION (XGTK_OBJECT (object)), rgba);
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
297
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
298 return (list4 (make_float (rgba[0]),
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
299 make_float (rgba[1]),
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
300 make_float (rgba[2]),
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
301 make_float (rgba[3])));
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
302 }
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
303
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
304 /* (gtk-import-function nil "gtk_editable_insert_text" 'GtkEditable 'GtkString 'gint 'pointer-to-gint) */
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
305 DEFUN ("gtk-editable-insert-text", Fgtk_editable_insert_text, 3, 3, 0, /*
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
306 Insert text STRINT at POS in GtkEditable widget OBJ.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
307 Returns the new position of the cursor in the widget.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
308 */
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
309 (obj, string, pos))
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
310 {
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
311 gint the_pos;
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
312
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
313 CHECK_GTK_OBJECT (obj);
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
314 CHECK_STRING (string);
5581
56144c8593a8 Mechanically change INT to FIXNUM in our sources.
Aidan Kehoe <kehoea@parhasard.net>
parents: 5420
diff changeset
315 CHECK_FIXNUM (pos);
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
316
5581
56144c8593a8 Mechanically change INT to FIXNUM in our sources.
Aidan Kehoe <kehoea@parhasard.net>
parents: 5420
diff changeset
317 the_pos = XFIXNUM (pos);
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
318
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
319 if (!GTK_IS_EDITABLE (XGTK_OBJECT (obj)->object))
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
320 {
563
183866b06e0b [xemacs-hg @ 2001-05-24 07:50:48 by ben]
ben
parents: 462
diff changeset
321 wtaerror ("Object is not a GtkEditable", obj);
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
322 }
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
323
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
324 gtk_editable_insert_text (GTK_EDITABLE (XGTK_OBJECT (obj)->object),
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
325 (char *) XSTRING_DATA (string),
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
326 XSTRING_LENGTH (string),
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
327 &the_pos);
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
328
5581
56144c8593a8 Mechanically change INT to FIXNUM in our sources.
Aidan Kehoe <kehoea@parhasard.net>
parents: 5420
diff changeset
329 return (make_fixnum (the_pos));
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
330 }
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
331
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
332 DEFUN ("gtk-pixmap-get", Fgtk_pixmap_get, 1, 1, 0, /*
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
333 Return a cons cell of (PIXMAP . MASK) from GtkPixmap OBJECT.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
334 */
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
335 (object))
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
336 {
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
337 GdkPixmap *pixmap, *mask;
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
338
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
339 CHECK_GTK_OBJECT (object);
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
340
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
341 if (!GTK_IS_PIXMAP (XGTK_OBJECT (object)->object))
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
342 {
563
183866b06e0b [xemacs-hg @ 2001-05-24 07:50:48 by ben]
ben
parents: 462
diff changeset
343 wtaerror ("Object is not a GtkPixmap", object);
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
344 }
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
345
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
346 gtk_pixmap_get (GTK_PIXMAP (XGTK_OBJECT (object)->object), &pixmap, &mask);
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
347
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
348 return (Fcons (pixmap ? build_gtk_object (GTK_OBJECT (pixmap)) : Qnil,
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
349 mask ? build_gtk_object (GTK_OBJECT (mask)) : Qnil));
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
350 }
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
351
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
352 DEFUN ("gtk-curve-get-vector", Fgtk_curve_get_vector, 2, 2, 0, /*
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
353 Returns a vector of LENGTH points representing the curve of CURVE.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
354 */
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
355 (curve, length))
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
356 {
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
357 gfloat *vector = NULL;
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
358 Lisp_Object lisp_vector = Qnil;
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
359 int i;
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
360
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
361 CHECK_GTK_OBJECT (curve);
5581
56144c8593a8 Mechanically change INT to FIXNUM in our sources.
Aidan Kehoe <kehoea@parhasard.net>
parents: 5420
diff changeset
362 CHECK_FIXNUM (length);
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
363
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
364 if (!GTK_IS_CURVE (XGTK_OBJECT (curve)->object))
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
365 {
563
183866b06e0b [xemacs-hg @ 2001-05-24 07:50:48 by ben]
ben
parents: 462
diff changeset
366 wtaerror ("Object is not a GtkCurve", curve);
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
367 }
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
368
5581
56144c8593a8 Mechanically change INT to FIXNUM in our sources.
Aidan Kehoe <kehoea@parhasard.net>
parents: 5420
diff changeset
369 vector = alloca_array (gfloat, XFIXNUM (length));
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
370
5581
56144c8593a8 Mechanically change INT to FIXNUM in our sources.
Aidan Kehoe <kehoea@parhasard.net>
parents: 5420
diff changeset
371 gtk_curve_get_vector (GTK_CURVE (XGTK_OBJECT (curve)->object), XFIXNUM (length), vector);
56144c8593a8 Mechanically change INT to FIXNUM in our sources.
Aidan Kehoe <kehoea@parhasard.net>
parents: 5420
diff changeset
372 lisp_vector = make_vector (XFIXNUM (length), Qnil);
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
373
5581
56144c8593a8 Mechanically change INT to FIXNUM in our sources.
Aidan Kehoe <kehoea@parhasard.net>
parents: 5420
diff changeset
374 for (i = 0; i < XFIXNUM (length); i++)
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
375 {
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
376 XVECTOR_DATA (lisp_vector)[i] = make_float (vector[i]);
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
377 }
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
378
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
379 return (lisp_vector);
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
380 }
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
381
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
382 DEFUN ("gtk-curve-set-vector", Fgtk_curve_set_vector, 2, 2, 0, /*
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
383 Set the vector of points on CURVE to VECTOR.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
384 */
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
385 (curve, vector))
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
386 {
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
387 gfloat *c_vector = NULL;
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
388 int vec_length = 0;
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
389 int i;
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
390
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
391 CHECK_GTK_OBJECT (curve);
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
392 CHECK_VECTOR (vector);
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
393
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
394 vec_length = XVECTOR_LENGTH (vector);
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
395
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
396 if (!GTK_IS_CURVE (XGTK_OBJECT (curve)->object))
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
397 {
563
183866b06e0b [xemacs-hg @ 2001-05-24 07:50:48 by ben]
ben
parents: 462
diff changeset
398 wtaerror ("Object is not a GtkCurve", curve);
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
399 }
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
400
2367
ecf1ebac70d8 [xemacs-hg @ 2004-11-04 23:05:23 by ben]
ben
parents: 2286
diff changeset
401 c_vector = alloca_array (gfloat, vec_length);
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
402
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
403 for (i = 0; i < vec_length; i++)
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
404 {
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
405 CHECK_FLOAT (XVECTOR_DATA (vector)[i]);
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
406 c_vector[i] = extract_float (XVECTOR_DATA (vector)[i]);
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
407 }
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
408
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
409 gtk_curve_set_vector (GTK_CURVE (XGTK_OBJECT (curve)->object), vec_length, c_vector);
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
410 return (Qt);
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
411 }
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
412
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
413 DEFUN ("gtk-label-get", Fgtk_label_get, 1, 1, 0, /*
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
414 Return the text of LABEL.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
415 */
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
416 (label))
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
417 {
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
418 gchar *string;
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
419
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
420 CHECK_GTK_OBJECT (label);
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
421
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
422 if (!GTK_IS_LABEL (XGTK_OBJECT (label)->object))
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
423 {
563
183866b06e0b [xemacs-hg @ 2001-05-24 07:50:48 by ben]
ben
parents: 462
diff changeset
424 wtaerror ("Object is not a GtkLabel", label);
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
425 }
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
426
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
427 gtk_label_get (GTK_LABEL (XGTK_OBJECT (label)->object), &string);
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
428
4953
304aebb79cd3 function renamings to track names of char typedefs
Ben Wing <ben@xemacs.org>
parents: 4709
diff changeset
429 return (build_cistring (string));
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
430 }
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
431
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
432 DEFUN ("gtk-notebook-query-tab-label-packing", Fgtk_notebook_query_tab_label_packing, 2, 2, 0, /*
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
433 Return a list of packing information (EXPAND FILL PACK_TYPE) for CHILD in NOTEBOOK.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
434 */
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
435 (notebook, child))
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
436 {
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
437 gboolean expand, fill;
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
438 GtkPackType pack_type;
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
439
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
440 CHECK_GTK_OBJECT (notebook);
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
441 CHECK_GTK_OBJECT (child);
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
442
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
443 if (!GTK_IS_NOTEBOOK (XGTK_OBJECT (notebook)->object))
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
444 {
563
183866b06e0b [xemacs-hg @ 2001-05-24 07:50:48 by ben]
ben
parents: 462
diff changeset
445 wtaerror ("Object is not a GtkLabel", notebook);
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
446 }
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
447
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
448 if (!GTK_IS_WIDGET (XGTK_OBJECT (child)->object))
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
449 {
563
183866b06e0b [xemacs-hg @ 2001-05-24 07:50:48 by ben]
ben
parents: 462
diff changeset
450 wtaerror ("Object is not a GtkWidget", child);
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
451 }
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
452
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
453 gtk_notebook_query_tab_label_packing (GTK_NOTEBOOK (XGTK_OBJECT (notebook)->object),
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
454 GTK_WIDGET (XGTK_OBJECT (child)->object),
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
455 &expand, &fill, &pack_type);
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
456
5581
56144c8593a8 Mechanically change INT to FIXNUM in our sources.
Aidan Kehoe <kehoea@parhasard.net>
parents: 5420
diff changeset
457 return (list3 (expand ? Qt : Qnil, fill ? Qt : Qnil, make_fixnum (pack_type)));
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
458 }
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
459
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
460 DEFUN ("gtk-widget-get-pointer", Fgtk_widget_get_pointer, 1, 1, 0, /*
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
461 Return the pointer position relative to WIDGET as a cons of (X . Y).
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
462 */
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
463 (widget))
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
464 {
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
465 gint x,y;
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
466 CHECK_GTK_OBJECT (widget);
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
467
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
468 if (!GTK_IS_WIDGET (XGTK_OBJECT (widget)->object))
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
469 {
563
183866b06e0b [xemacs-hg @ 2001-05-24 07:50:48 by ben]
ben
parents: 462
diff changeset
470 wtaerror ("Object is not a GtkWidget", widget);
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
471 }
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
472
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
473 gtk_widget_get_pointer (GTK_WIDGET (XGTK_OBJECT (widget)->object), &x, &y);
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
474
5581
56144c8593a8 Mechanically change INT to FIXNUM in our sources.
Aidan Kehoe <kehoea@parhasard.net>
parents: 5420
diff changeset
475 return (Fcons (make_fixnum (x), make_fixnum (y)));
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
476 }
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
477
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
478 /* This is called whenever an item with a GUI_ID associated with it is
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
479 destroyed. This allows us to remove the references in gui-gtk.c
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
480 that made sure callbacks and such were GCPRO-ed
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
481 */
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
482 static void
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
483 __remove_gcpro_by_id (gpointer user_data)
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
484 {
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
485 ungcpro_popup_callbacks ((GUI_ID) user_data);
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
486 }
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
487
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
488 static void
2286
04bc9d2f42c7 [xemacs-hg @ 2004-09-20 19:18:55 by james]
james
parents: 2054
diff changeset
489 __generic_toolbar_callback (GtkWidget *UNUSED (item), gpointer user_data)
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
490 {
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
491 Lisp_Object callback;
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
492 Lisp_Object lisp_user_data;
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
493
5013
ae48681c47fa changes to VOID_TO_LISP et al.
Ben Wing <ben@xemacs.org>
parents: 4953
diff changeset
494 callback = GET_LISP_FROM_VOID (user_data);
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
495
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
496 lisp_user_data = XCAR (callback);
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
497 callback = XCDR (callback);
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
498
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
499 signal_special_gtk_user_event (Qnil, callback, lisp_user_data);
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
500 }
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
501
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
502 static Lisp_Object
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
503 generic_toolbar_insert_item (Lisp_Object toolbar,
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
504 Lisp_Object text,
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
505 Lisp_Object tooltip_text,
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
506 Lisp_Object tooltip_private_text,
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
507 Lisp_Object icon,
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
508 Lisp_Object callback,
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
509 Lisp_Object data,
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
510 Lisp_Object prepend_p,
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
511 Lisp_Object position)
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
512 {
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
513 GUI_ID id;
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
514 GtkWidget *w = NULL;
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
515
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
516 CHECK_GTK_OBJECT (toolbar);
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
517 CHECK_GTK_OBJECT (icon);
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
518 CHECK_STRING (text);
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
519 CHECK_STRING (tooltip_text);
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
520 CHECK_STRING (tooltip_private_text);
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
521
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
522 if (!SYMBOLP (callback) && !LISTP (callback))
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
523 {
563
183866b06e0b [xemacs-hg @ 2001-05-24 07:50:48 by ben]
ben
parents: 462
diff changeset
524 wtaerror ("Callback must be symbol or eval-able form", callback);
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
525 }
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
526
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
527 if (!GTK_IS_TOOLBAR (XGTK_OBJECT (toolbar)->object))
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
528 {
563
183866b06e0b [xemacs-hg @ 2001-05-24 07:50:48 by ben]
ben
parents: 462
diff changeset
529 wtaerror ("Object is not a GtkToolbar", toolbar);
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
530 }
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
531
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
532 if (!GTK_IS_WIDGET (XGTK_OBJECT (icon)->object))
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
533 {
563
183866b06e0b [xemacs-hg @ 2001-05-24 07:50:48 by ben]
ben
parents: 462
diff changeset
534 wtaerror ("Object is not a GtkWidget", icon);
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
535 }
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
536
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
537 callback = Fcons (data, callback);
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
538
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
539 id = new_gui_id ();
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
540 gcpro_popup_callbacks (id, callback);
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
541 gtk_object_weakref (XGTK_OBJECT (toolbar)->object, __remove_gcpro_by_id,
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
542 (gpointer) id);
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
543
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
544 if (NILP (position))
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
545 {
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
546 w = (NILP (prepend_p) ? gtk_toolbar_append_item : gtk_toolbar_prepend_item)
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
547 (GTK_TOOLBAR (XGTK_OBJECT (toolbar)->object),
2054
91d4c8c65a0f [xemacs-hg @ 2004-05-02 04:06:51 by malcolmp]
malcolmp
parents: 851
diff changeset
548 (char*) XSTRING_DATA (text),
91d4c8c65a0f [xemacs-hg @ 2004-05-02 04:06:51 by malcolmp]
malcolmp
parents: 851
diff changeset
549 (char*) XSTRING_DATA (tooltip_text),
91d4c8c65a0f [xemacs-hg @ 2004-05-02 04:06:51 by malcolmp]
malcolmp
parents: 851
diff changeset
550 (char*) XSTRING_DATA (tooltip_private_text),
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
551 GTK_WIDGET (XGTK_OBJECT (icon)->object),
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
552 GTK_SIGNAL_FUNC (__generic_toolbar_callback),
5013
ae48681c47fa changes to VOID_TO_LISP et al.
Ben Wing <ben@xemacs.org>
parents: 4953
diff changeset
553 STORE_LISP_IN_VOID (callback));
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
554 }
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
555 else
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
556 {
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
557 w = gtk_toolbar_insert_item (GTK_TOOLBAR (XGTK_OBJECT (toolbar)->object),
2054
91d4c8c65a0f [xemacs-hg @ 2004-05-02 04:06:51 by malcolmp]
malcolmp
parents: 851
diff changeset
558 (char*) XSTRING_DATA (text),
91d4c8c65a0f [xemacs-hg @ 2004-05-02 04:06:51 by malcolmp]
malcolmp
parents: 851
diff changeset
559 (char*) XSTRING_DATA (tooltip_text),
91d4c8c65a0f [xemacs-hg @ 2004-05-02 04:06:51 by malcolmp]
malcolmp
parents: 851
diff changeset
560 (char*) XSTRING_DATA (tooltip_private_text),
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
561 GTK_WIDGET (XGTK_OBJECT (icon)->object),
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
562 GTK_SIGNAL_FUNC (__generic_toolbar_callback),
5013
ae48681c47fa changes to VOID_TO_LISP et al.
Ben Wing <ben@xemacs.org>
parents: 4953
diff changeset
563 STORE_LISP_IN_VOID (callback),
5581
56144c8593a8 Mechanically change INT to FIXNUM in our sources.
Aidan Kehoe <kehoea@parhasard.net>
parents: 5420
diff changeset
564 XFIXNUM (position));
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
565 }
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
566
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
567
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
568 return (w ? build_gtk_object (GTK_OBJECT (w)) : Qnil);
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
569 }
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
570
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
571 DEFUN ("gtk-toolbar-append-item", Fgtk_toolbar_append_item, 6, 7, 0, /*
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
572 Appends a new button to the given toolbar.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
573 */
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
574 (toolbar, text, tooltip_text, tooltip_private_text, icon, callback, data))
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
575 {
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
576 return (generic_toolbar_insert_item (toolbar,text,tooltip_text,tooltip_private_text,icon,callback,data,Qnil,Qnil));
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
577 }
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
578
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
579 DEFUN ("gtk-toolbar-prepend-item", Fgtk_toolbar_prepend_item, 6, 7, 0, /*
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
580 Adds a new button to the beginning (left or top edges) of the given toolbar.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
581 */
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
582 (toolbar, text, tooltip_text, tooltip_private_text, icon, callback, data))
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
583 {
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
584 return (generic_toolbar_insert_item (toolbar,text,tooltip_text,tooltip_private_text,icon,callback,data,Qt,Qnil));
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
585 }
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
586
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
587 DEFUN ("gtk-toolbar-insert-item", Fgtk_toolbar_insert_item, 7, 8, 0, /*
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
588 Adds a new button to the beginning (left or top edges) of the given toolbar.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
589 */
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
590 (toolbar, text, tooltip_text, tooltip_private_text, icon, callback, position, data))
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
591 {
5581
56144c8593a8 Mechanically change INT to FIXNUM in our sources.
Aidan Kehoe <kehoea@parhasard.net>
parents: 5420
diff changeset
592 CHECK_FIXNUM (position);
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
593
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
594 return (generic_toolbar_insert_item (toolbar,text,tooltip_text,tooltip_private_text,icon,callback,data,Qnil,position));
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
595 }
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
596
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
597 /* GtkCTree is an abomination in the eyes of the object system. */
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
598 static void
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
599 __emacs_gtk_ctree_recurse_internal (GtkCTree *ctree, GtkCTreeNode *node, gpointer user_data)
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
600 {
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
601 Lisp_Object closure;
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
602
5013
ae48681c47fa changes to VOID_TO_LISP et al.
Ben Wing <ben@xemacs.org>
parents: 4953
diff changeset
603 closure = GET_LISP_FROM_VOID (user_data);
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
604
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
605 call3 (XCAR (closure),
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
606 build_gtk_object (GTK_OBJECT (ctree)),
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
607 build_gtk_boxed (node, GTK_TYPE_CTREE_NODE),
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
608 XCDR (closure));
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
609 }
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
610
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
611 DEFUN ("gtk-ctree-recurse", Fgtk_ctree_recurse, 3, 6, 0, /*
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
612 Recursively apply FUNC to all nodes of CTREE at or below NODE.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
613 FUNC is called with three arguments: CTREE, a GtkCTreeNode, and DATA.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
614 The return value of FUNC is ignored.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
615
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
616 If optional 5th argument CHILDFIRSTP is non-nil, then
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
617 the function is called for each node after it has been
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
618 called for that node's children.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
619
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
620 Optional 6th argument DEPTH limits how deeply to recurse.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
621
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
622 This function encompasses all the following Gtk functions:
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
623
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
624 void gtk_ctree_post_recursive (GtkCTree *ctree,
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
625 GtkCTreeNode *node,
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
626 GtkCTreeFunc func,
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
627 gpointer data);
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
628 void gtk_ctree_post_recursive_to_depth (GtkCTree *ctree,
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
629 GtkCTreeNode *node,
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
630 gint depth,
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
631 GtkCTreeFunc func,
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
632 gpointer data);
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
633 void gtk_ctree_pre_recursive (GtkCTree *ctree,
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
634 GtkCTreeNode *node,
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
635 GtkCTreeFunc func,
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
636 gpointer data);
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
637 void gtk_ctree_pre_recursive_to_depth (GtkCTree *ctree,
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
638 GtkCTreeNode *node,
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
639 gint depth,
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
640 GtkCTreeFunc func,
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
641 gpointer data);
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
642 */
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
643 (ctree, node, func, data, childfirstp, depth))
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
644 {
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
645 struct gcpro gcpro1, gcpro2, gcpro3;
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
646 Lisp_Object closure = Qnil;
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
647
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
648 CHECK_GTK_OBJECT (ctree);
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
649
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
650 if (!NILP (node))
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
651 {
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
652 CHECK_GTK_BOXED (node);
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
653 }
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
654
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
655 if (!NILP (depth))
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
656 {
5581
56144c8593a8 Mechanically change INT to FIXNUM in our sources.
Aidan Kehoe <kehoea@parhasard.net>
parents: 5420
diff changeset
657 CHECK_FIXNUM (depth);
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
658 }
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
659
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
660 closure = Fcons (func, data);
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
661
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
662 GCPRO3 (ctree, node, closure);
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
663
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
664 if (NILP (depth))
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
665 {
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
666 (NILP (childfirstp) ? gtk_ctree_post_recursive : gtk_ctree_pre_recursive)
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
667 (GTK_CTREE (XGTK_OBJECT (ctree)->object),
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
668 NILP (node) ? NULL : (GtkCTreeNode *) XGTK_BOXED (node)->object,
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
669 __emacs_gtk_ctree_recurse_internal,
5013
ae48681c47fa changes to VOID_TO_LISP et al.
Ben Wing <ben@xemacs.org>
parents: 4953
diff changeset
670 STORE_LISP_IN_VOID (closure));
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
671 }
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
672 else
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
673 {
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
674 (NILP (childfirstp) ? gtk_ctree_post_recursive_to_depth : gtk_ctree_pre_recursive_to_depth)
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
675 (GTK_CTREE (XGTK_OBJECT (ctree)->object),
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
676 NILP (node) ? NULL : (GtkCTreeNode *) XGTK_BOXED (node)->object,
5581
56144c8593a8 Mechanically change INT to FIXNUM in our sources.
Aidan Kehoe <kehoea@parhasard.net>
parents: 5420
diff changeset
677 XFIXNUM (depth),
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
678 __emacs_gtk_ctree_recurse_internal,
5013
ae48681c47fa changes to VOID_TO_LISP et al.
Ben Wing <ben@xemacs.org>
parents: 4953
diff changeset
679 STORE_LISP_IN_VOID (closure));
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
680 }
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
681
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
682 UNGCPRO;
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
683 return (Qnil);
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
684 }
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
685
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
686 void syms_of_ui_byhand (void)
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
687 {
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
688 DEFSUBR (Fgtk_toolbar_append_item);
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
689 DEFSUBR (Fgtk_toolbar_insert_item);
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
690 DEFSUBR (Fgtk_toolbar_prepend_item);
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
691 DEFSUBR (Fgtk_box_query_child_packing);
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
692 DEFSUBR (Fgtk_button_box_get_child_size_default);
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
693 DEFSUBR (Fgtk_button_box_get_child_ipadding_default);
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
694 DEFSUBR (Fgtk_button_box_get_child_size);
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
695 DEFSUBR (Fgtk_button_box_get_child_ipadding);
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
696 DEFSUBR (Fgtk_calendar_get_date);
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
697 DEFSUBR (Fgtk_clist_get_text);
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
698 DEFSUBR (Fgtk_clist_get_selection);
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
699 DEFSUBR (Fgtk_clist_get_pixmap);
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
700 DEFSUBR (Fgtk_clist_get_pixtext);
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
701 DEFSUBR (Fgtk_color_selection_get_color);
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
702 DEFSUBR (Fgtk_editable_insert_text);
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
703 DEFSUBR (Fgtk_pixmap_get);
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
704 DEFSUBR (Fgtk_curve_get_vector);
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
705 DEFSUBR (Fgtk_curve_set_vector);
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
706 DEFSUBR (Fgtk_label_get);
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
707 DEFSUBR (Fgtk_notebook_query_tab_label_packing);
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
708 DEFSUBR (Fgtk_widget_get_pointer);
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
709 DEFSUBR (Fgtk_ctree_recurse);
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
710 }