annotate lisp/gnome-widgets.el @ 4792:95b04754ea8c

Make #'equalp more compatible with CL; add a compiler macro, test & doc it. lisp/ChangeLog addition: 2009-11-08 Aidan Kehoe <kehoea@parhasard.net> * cl-extra.el (cl-string-vector-equalp) (cl-bit-vector-vector-equalp, cl-vector-array-equalp) (cl-hash-table-contents-equalp): New functions, to implement equalp treating arrays with identical contents as equivalent, as specified by Common Lisp. (equalp): Revise this function to implement array equivalence, and the hash-table equalp behaviour specified by CL. * cl-macs.el (equalp): Add a compiler macro for this function, used when one of the arguments is constant, and as such, its type is known at compile time. man/ChangeLog addition: 2009-11-08 Aidan Kehoe <kehoea@parhasard.net> * lispref/objects.texi (Equality Predicates): Document #'equalp here, as well as #'equal and #'eq. tests/ChangeLog addition: 2009-12-31 Aidan Kehoe <kehoea@parhasard.net> * automated/lisp-tests.el: Test much of the functionality of equalp; add a pointer to Paul Dietz' ANSI test suite for this function, converted to Emacs Lisp. Not including the tests themselves in XEmacs because who owns the copyright on the files is unclear and the GCL people didn't respond to my queries.
author Aidan Kehoe <kehoea@parhasard.net>
date Thu, 31 Dec 2009 15:09:41 +0000
parents 7039e6323819
children 3889ef128488 308d34e9f07d
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
1 ;;; gnome-widgets.el --- Import GNOME functions into XEmacs
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
2
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
3 ;; Copyright (C) 2000 Free Software Foundation
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
4
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
5 ;; Maintainer: William Perry <wmperry@gnu.org>
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
6 ;; Keywords: extensions, dumped
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
7
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
8 ;; This file is part of XEmacs.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
9
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
10 ;; XEmacs is free software; you can redistribute it and/or modify it
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
11 ;; under the terms of the GNU General Public License as published by
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
12 ;; the Free Software Foundation; either version 2, or (at your option)
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
13 ;; any later version.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
14
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
15 ;; XEmacs is distributed in the hope that it will be useful, but
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
16 ;; WITHOUT ANY WARRANTY; without even the implied warranty of
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
17 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
18 ;; General Public License for more details.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
19
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
20 ;; You should have received a copy of the GNU General Public License
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
21 ;; along with XEmacs; see the file COPYING. If not, write to the Free
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
22 ;; Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
23 ;; 02111-1307, USA.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
24
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
25 ;;; Synched up with: Not in FSF
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
26
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
27 ;;; Commentary:
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
28
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
29 ;; This file is dumped with XEmacs.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
30
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
31 (eval-and-compile
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
32 (require 'gtk-ffi))
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
33
502
7039e6323819 [xemacs-hg @ 2001-05-04 22:41:46 by ben]
ben
parents: 462
diff changeset
34 (globally-declare-fboundp
7039e6323819 [xemacs-hg @ 2001-05-04 22:41:46 by ben]
ben
parents: 462
diff changeset
35 '(gtk-import-function-internal
7039e6323819 [xemacs-hg @ 2001-05-04 22:41:46 by ben]
ben
parents: 462
diff changeset
36 gtk-call-function
7039e6323819 [xemacs-hg @ 2001-05-04 22:41:46 by ben]
ben
parents: 462
diff changeset
37 gtk-button-new-with-label))
7039e6323819 [xemacs-hg @ 2001-05-04 22:41:46 by ben]
ben
parents: 462
diff changeset
38
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
39 (gtk-import-function GtkType gnome_about_get_type)
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
40 (gtk-import-function GtkWidget gnome_about_new
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
41 (GtkString . title)
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
42 (GtkString . version)
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
43 (GtkString . copyright)
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
44 (GtkArrayOfString . authors)
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
45 (GtkString . comments)
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
46 (GtkString . logo))
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
47
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
48
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
49 (gtk-import-function GtkType gnome_app_get_type)
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 ;; Create a new (empty) application window. You must specify the
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
52 ;; application's name (used internally as an identifier). The window
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
53 ;; title can be left as NULL, in which case the window's title will
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
54 ;; not be set.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
55 (gtk-import-function GtkWidget gnome_app_new
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
56 (GtkString . appname)
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
57 (GtkString . title))
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
58
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
59 ;; Constructor for language bindings; you don't normally need this.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
60 (gtk-import-function nil gnome_app_construct
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
61 (GnomeApp . app)
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
62 (GtkString . appname)
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
63 (GtkString . title))
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 ;; Sets the menu bar of the application window
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
66 (gtk-import-function nil gnome_app_set_menus
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
67 (GnomeApp . app)
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
68 (GtkMenuBar . menubar))
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
69
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
70 ;; Sets the main toolbar of the application window
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
71 (gtk-import-function nil gnome_app_set_toolbar
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
72 (GnomeApp . app)
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
73 (GtkToolbar . toolbar))
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 ;; Sets the status bar of the application window
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
76 (gtk-import-function nil gnome_app_set_statusbar
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
77 (GnomeApp . app)
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
78 (GtkWidget . statusbar))
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
79
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
80 ;; Sets the status bar of the application window, but uses the given
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
81 ;; container widget rather than creating a new one.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
82 (gtk-import-function nil gnome_app_set_statusbar_custom
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
83 (GnomeApp . app)
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
84 (GtkWidget . container)
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
85 (GtkWidget . statusbar))
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 ;; Sets the content area of the application window
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
88 (gtk-import-function nil gnome_app_set_contents
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
89 (GnomeApp . app)
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
90 (GtkWidget . contents))
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
91
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
92 (gtk-import-function nil gnome_app_add_toolbar
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
93 (GnomeApp . app)
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
94 (GtkToolbar . toolbar)
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
95 (GtkString . name)
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
96 (GnomeDockItemBehavior . behavior)
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
97 (GnomeDockPlacement . placement)
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
98 (gint . band_num)
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
99 (gint . band_position)
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
100 (gint . offset))
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
101
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
102 (gtk-import-function nil gnome_app_add_docked
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
103 (GnomeApp . app)
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
104 (GtkWidget . toolbar)
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
105 (GtkString . name)
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
106 (GnomeDockItemBehavior . behavior)
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
107 (GnomeDockPlacement . placement)
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
108 (gint . band_num)
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
109 (gint . band_position)
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
110 (gint . offset))
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-import-function nil gnome_app_add_dock_item
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
113 (GnomeApp . app)
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
114 (GnomeDockItem . item)
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
115 (GnomeDockPlacement . placement)
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
116 (gint . band_num)
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
117 (gint . band_position)
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
118 (gint . offset))
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
119
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
120 (gtk-import-function nil gnome_app_enable_layout_config
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
121 (GnomeApp . app)
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
122 (gboolean . enable))
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
123
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
124 (gtk-import-function GnomeDock gnome_app_get_dock
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
125 (GnomeApp . app))
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
126 (gtk-import-function GnomeDockItem gnome_app_get_dock_item_by_name
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
127 (GnomeApp . app)
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
128 (GtkString . name))
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
129
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
130
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
131 (gtk-import-function GtkType gnome_appbar_get_type)
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 (gtk-import-function GtkWidget gnome_appbar_new
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
134 (gboolean . has_progress)
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
135 (gboolean . has_status)
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
136 (GnomePreferencesType . interactivity))
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
137
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
138 ;; Sets the status label without changing widget state; next set or push
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
139 ;; will destroy this permanently.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
140 (gtk-import-function nil gnome_appbar_set_status
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
141 (GnomeAppBar . appbar)
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
142 (GtkString . status))
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
143
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
144 ;; What to show when showing nothing else; defaults to nothing
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
145 (gtk-import-function nil gnome_appbar_set_default
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
146 (GnomeAppBar . appbar)
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
147 (GtkString . default_status))
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
148
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
149 (gtk-import-function nil gnome_appbar_push
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
150 (GnomeAppBar . appbar)
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
151 (GtkString . status))
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
152
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
153 ;; OK to call on empty stack
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
154 (gtk-import-function nil gnome_appbar_pop
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
155 (GnomeAppBar . appbar))
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
156
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
157 ;; Nuke the stack.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
158 (gtk-import-function nil gnome_appbar_clear_stack
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
159 (GnomeAppBar . appbar))
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
160
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
161 ;; pure sugar - with a bad name, in light of the get_progress name
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
162 ;; which is not the opposite of set_progress. Maybe this function
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
163 ;; should die
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
164 (gtk-import-function nil gnome_appbar_set_progress
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
165 (GnomeAppBar . appbar)
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
166 (gfloat . percentage))
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
167
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
168 ;; use GtkProgress functions on returned value
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
169 (gtk-import-function GtkProgress gnome_appbar_get_progress
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
170 (GnomeAppBar . appbar))
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
171
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
172 ;; Reflect the current state of stack/default. Useful to force a set_status
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
173 ;; to disappear.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
174 (gtk-import-function nil gnome_appbar_refresh
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
175 (GnomeAppBar . appbar))
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
176
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
177 ;; Put a prompt in the appbar and wait for a response. When the
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
178 ;; user responds or cancels, a user_response signal is emitted.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
179 (gtk-import-function nil gnome_appbar_set_prompt
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
180 (GnomeAppBar . appbar)
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
181 (GtkString . prompt)
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
182 (gboolean . modal))
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
183
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
184 ;; Remove any prompt
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
185 (gtk-import-function nil gnome_appbar_clear_prompt
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
186 (GnomeAppBar . appbar))
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
187
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
188 ;; Get the response to the prompt, if any. Result must be g_free'd.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
189 (gtk-import-function GtkString gnome_appbar_get_response
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
190 (GnomeAppBar . appbar))
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
191
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
192
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
193 (gtk-import-function GtkType gnome_calculator_get_type)
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
194 (gtk-import-function GtkWidget gnome_calculator_new)
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
195 (gtk-import-function nil gnome_calculator_clear
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
196 (GnomeCalculator . gc)
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
197 (gboolean . reset))
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
198
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
199 (gtk-import-function nil gnome_calculator_set
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
200 (GnomeCalculator . gc)
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
201 (gdouble . result))
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
202
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
203
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
204 ;; Standard Gtk function
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
205 (gtk-import-function GtkType gnome_color_picker_get_type)
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
206
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
207 ;; Creates a new color picker widget
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
208 (gtk-import-function GtkWidget gnome_color_picker_new)
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
209
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
210 ;; Set/get the color in the picker. Values are in [0.0, 1.0]
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
211 (gtk-import-function nil gnome_color_picker_set_d
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
212 (GnomeColorPicker . cp)
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
213 (gdouble . r)
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
214 (gdouble . g)
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
215 (gdouble . b)
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
216 (gdouble . a))
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
217
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
218 ;; #### BILL!!! Need multiple return values
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
219 ;; void gnome_color_picker_get_d (GnomeColorPicker *cp, gdouble *r, gdouble *g, gdouble *b, gdouble *a)
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 ;; Set/get the color in the picker. Values are in [0, 255]
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
222 (gtk-import-function nil gnome_color_picker_set_i8
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
223 (GnomeColorPicker . cp)
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
224 (guint . r)
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
225 (guint . g)
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
226 (guint . b)
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
227 (guint . a))
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
228
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
229 ;; #### BILL!!! Need multiple return values
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
230 ;; void gnome_color_picker_get_i8 (GnomeColorPicker *cp, guint8 *r, guint8 *g, guint8 *b, guint8 *a);
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
231
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
232 ;; Set/get the color in the picker. Values are in [0, 65535]
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
233 (gtk-import-function nil gnome_color_picker_set_i16
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
234 (GnomeColorPicker . cp)
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
235 (guint . r)
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
236 (guint . g)
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
237 (guint . b)
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
238 (guint . a))
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 ;; #### BILL!!! Need multiple return values
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
241 ;; void gnome_color_picker_get_i16 (GnomeColorPicker *cp, gushort *r, gushort *g, gushort *b, gushort *a);
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
242
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
243 ;; Sets whether the picker should dither the color sample or just paint a solid rectangle
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
244 (gtk-import-function nil gnome_color_picker_set_dither
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
245 (GnomeColorPicker . cp)
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
246 (gboolean . dither))
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
247
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
248 ;; Sets whether the picker should use the alpha channel or not
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
249 (gtk-import-function nil gnome_color_picker_set_use_alpha
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
250 (GnomeColorPicker . cp)
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
251 (gboolean . use_alpha))
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 ;; Sets the title for the color selection dialog
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
254 (gtk-import-function nil gnome_color_picker_set_title
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
255 (GnomeColorPicker . cp)
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
256 (GtkString . title))
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
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
259 (gtk-import-function GtkType gnome_date_edit_get_type)
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
260 (gtk-import-function GtkWidget gnome_date_edit_new
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
261 (time_t . the_time)
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
262 (gboolean . show_time)
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
263 (gboolean . use_24_format))
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
264
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
265 (gtk-import-function GtkWidget gnome_date_edit_new_flags
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
266 (time_t . the_time)
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
267 (GnomeDateEditFlags . flags))
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
268
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
269 (gtk-import-function nil gnome_date_edit_set_time
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
270 (GnomeDateEdit . gde)
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
271 (time_t . the_time))
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
272
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
273 (gtk-import-function nil gnome_date_edit_set_popup_range
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
274 (GnomeDateEdit . gde)
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
275 (guint . low_hour)
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
276 (guint . up_hour))
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
277
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
278 (gtk-import-function 'time_t gnome_date_edit_get_date
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
279 (GnomeDateEdit . gde))
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 (gtk-import-function nil gnome_date_edit_set_flags
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
282 (GnomeDateEdit . gde)
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
283 (GnomeDateEditFlags . flags))
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 (gtk-import-function GnomeDateEditFlags gnome_date_edit_get_flags
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
286 (GnomeDateEdit . gde))
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
287
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 (gtk-import-function GtkType gnome_dentry_edit_get_type)
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 ;; create a new dentry and get the children using the below macros
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
292 ;; or use the utility new_notebook below
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
293 (gtk-import-function GtkObject gnome_dentry_edit_new)
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 ;;#define gnome_dentry_edit_child1(d) (GNOME_DENTRY_EDIT(d)->child1)
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
296 ;;#define gnome_dentry_edit_child2(d) (GNOME_DENTRY_EDIT(d)->child2)
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 ;; Create a new edit in this notebook - appends two pages to the
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
299 ;; notebook.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
300 (gtk-import-function GtkObject gnome_dentry_edit_new_notebook
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
301 (GtkNotebook . notebook))
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 (gtk-import-function nil gnome_dentry_edit_clear
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
304 (GnomeDEntryEdit . dee))
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
305
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
306 ;; The GnomeDEntryEdit does not store a dentry, and it does not keep
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
307 ;; track of the location field of GnomeDesktopEntry which will always
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
308 ;; be NULL.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
309
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
310 ;; Make the display reflect dentry at path
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
311 (gtk-import-function nil gnome_dentry_edit_load_file
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
312 (GnomeDEntryEdit . dee)
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
313 (GtkString . path))
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
314
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
315 ;; Copy the contents of this dentry into the display
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
316 '(gtk-import-function nil gnome_dentry_edit_set_dentry
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
317 (GnomeDEntryEdit . dee)
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
318 (GnomeDesktopEntry . dentry))
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
319
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
320 ;; Generate a dentry based on the contents of the display
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
321 '(gtk-import-function GnomeDesktopEntry gnome_dentry_edit_get_dentry
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
322 (GnomeDEntryEdit . dee))
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 ;; Return an allocated string, you need to g_free it.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
325 (gtk-import-function GtkString gnome_dentry_edit_get_icon
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
326 (GnomeDEntryEdit . dee))
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
327 (gtk-import-function GtkString gnome_dentry_edit_get_name
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
328 (GnomeDEntryEdit . dee))
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
329
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
330 ;; These are accessor functions for the widgets that make up the
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
331 ;; GnomeDEntryEdit widget.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
332 (gtk-import-function GtkWidget gnome_dentry_get_name_entry (GnomeDEntryEdit . dee))
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
333 (gtk-import-function GtkWidget gnome_dentry_get_comment_entry (GnomeDEntryEdit . dee))
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
334 (gtk-import-function GtkWidget gnome_dentry_get_exec_entry (GnomeDEntryEdit . dee))
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
335 (gtk-import-function GtkWidget gnome_dentry_get_tryexec_entry (GnomeDEntryEdit . dee))
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
336 (gtk-import-function GtkWidget gnome_dentry_get_doc_entry (GnomeDEntryEdit . dee))
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
337 (gtk-import-function GtkWidget gnome_dentry_get_icon_entry (GnomeDEntryEdit . dee))
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
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
340 ;; The GtkWidget * return values were added in retrospect; sometimes
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
341 ;; you might want to connect to the "close" signal of the dialog, or
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
342 ;; something, the return value makes the functions more
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
343 ;; flexible. However, there is nothing especially guaranteed about
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
344 ;; these dialogs except that they will be dialogs, so don't count on
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
345 ;; anything.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
346
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
347 ;; A little OK box
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
348 (gtk-import-function GtkWidget gnome_ok_dialog (GtkString . message))
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
349 (gtk-import-function GtkWidget gnome_ok_dialog_parented
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
350 (GtkString . message)
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
351 (GtkWindow . parent))
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
352
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
353 ;; Operation failed fatally. In an OK dialog.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
354 (gtk-import-function GtkWidget gnome_error_dialog '(GtkString . error))
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
355 (gtk-import-function GtkWidget gnome_error_dialog_parented
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
356 (GtkString . error)
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
357 (GtkWindow . parent))
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
358
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
359 ;; Just a warning.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
360 (gtk-import-function GtkWidget gnome_warning_dialog '(GtkString . warning))
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
361 (gtk-import-function GtkWidget gnome_warning_dialog_parented
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
362 (GtkString . warning)
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
363 (GtkWindow . parent))
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
364
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
365 ;;;/* Look in gnome-types.h for the callback types. */
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
366
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
367 ;;;/* Ask a yes or no question, and call the callback when it's answered. */
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
368 ;;;GtkWidget * gnome_question_dialog (const gchar * question,
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
369 ;;; GnomeReplyCallback callback,
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
370 ;;; gpointer data);
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
371
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
372 ;;;GtkWidget * gnome_question_dialog_parented (const gchar * question,
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
373 ;;; GnomeReplyCallback callback,
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
374 ;;; gpointer data,
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
375 ;;; GtkWindow * parent);
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
376
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
377 ;;;GtkWidget * gnome_question_dialog_modal (const gchar * question,
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
378 ;;; GnomeReplyCallback callback,
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
379 ;;; gpointer data);
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 ;;;GtkWidget * gnome_question_dialog_modal_parented (const gchar * question,
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
382 ;;; GnomeReplyCallback callback,
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
383 ;;; gpointer data,
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
384 ;;; GtkWindow * parent);
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
385
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 ;;;/* OK-Cancel question. */
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
388 ;;;GtkWidget * gnome_ok_cancel_dialog (const gchar * message,
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
389 ;;; GnomeReplyCallback callback,
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
390 ;;; gpointer data);
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
391
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
392 ;;;GtkWidget * gnome_ok_cancel_dialog_parented (const gchar * message,
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
393 ;;; GnomeReplyCallback callback,
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
394 ;;; gpointer data,
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
395 ;;; GtkWindow * parent);
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
396
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
397 ;;;GtkWidget * gnome_ok_cancel_dialog_modal (const gchar * message,
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
398 ;;; GnomeReplyCallback callback,
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
399 ;;; gpointer data);
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
400
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
401 ;;;GtkWidget * gnome_ok_cancel_dialog_modal_parented (const gchar * message,
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
402 ;;; GnomeReplyCallback callback,
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
403 ;;; gpointer data,
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
404 ;;; GtkWindow * parent);
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
405
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
406
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
407 (gtk-import-function GtkType gnome_file_entry_get_type)
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
408 (gtk-import-function GtkWidget gnome_file_entry_new
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
409 (GtkString . history_id)
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
410 (GtkString . browse_dialog_title))
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 (gtk-import-function nil gnome_file_entry_construct
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
413 (GnomeFileEntry . fentry)
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
414 (GtkString . history_id)
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
415 (GtkString . browse_dialog_title))
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
416
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
417 (gtk-import-function GtkWidget gnome_file_entry_gnome_entry
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
418 (GnomeFileEntry .fentry))
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 (gtk-import-function GtkWidget gnome_file_entry_gtk_entry
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
421 (GnomeFileEntry . fentry))
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
422
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
423 (gtk-import-function nil gnome_file_entry_set_title
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
424 (GnomeFileEntry . fentry)
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
425 (GtkString . browse_dialog_title))
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 ;; set default path for the browse dialog
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
428 (gtk-import-function nil gnome_file_entry_set_default_path
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
429 (GnomeFileEntry . fentry)
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
430 (GtkString . path))
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 ;; sets up the file entry to be a directory picker rather then a file picker
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
433 (gtk-import-function nil gnome_file_entry_set_directory
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
434 (GnomeFileEntry . fentry)
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
435 (gboolean . directory_entry))
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 ;; returns a filename which is a full path with WD or the default
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
438 ;; directory prepended if it's not an absolute path, returns
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
439 ;; NULL on empty entry or if the file doesn't exist and that was
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
440 ;; a requirement
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
441 (gtk-import-function GtkString gnome_file_entry_get_full_path
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
442 (GnomeFileEntry . fentry)
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
443 (gboolean . file_must_exist))
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
444
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
445 ;; set modality of the file browse dialog, only applies for the
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
446 ;; next time a dialog is created
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
447 (gtk-import-function nil gnome_file_entry_set_modal
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
448 (GnomeFileEntry . fentry)
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
449 (gboolean . is_modal))
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
450
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 ;; Standard Gtk function
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
453 (gtk-import-function GtkType gnome_font_picker_get_type)
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
454
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
455 ;; Creates a new font picker widget
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
456 (gtk-import-function GtkWidget gnome_font_picker_new)
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
457
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
458 ;; Sets the title for the font selection dialog
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
459 (gtk-import-function nil gnome_font_picker_set_title
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
460 (GnomeFontPicker . gfp)
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
461 (GtkString . title))
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 ;; Button mode
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
464 (gtk-import-function GnomeFontPickerMode gnome_font_picker_get_mode
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
465 (GnomeFontPicker . gfp))
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
466
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
467 (gtk-import-function nil gnome_font_picker_set_mode
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
468 (GnomeFontPicker . gfp)
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
469 (GnomeFontPickerMode . mode))
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
470
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
471 ;; With GNOME_FONT_PICKER_MODE_FONT_INFO
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
472 ;; If use_font_in_label is true, font name will be writen using font choosed by user and
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
473 ;; using size passed to this function
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
474 (gtk-import-function nil gnome_font_picker_fi_set_use_font_in_label
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
475 (GnomeFontPicker . gfp)
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
476 (gboolean . use_font_in_label)
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
477 (gint . size))
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
478
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
479 (gtk-import-function nil gnome_font_picker_fi_set_show_size
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
480 (GnomeFontPicker . gfp)
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
481 (gboolean . show_size))
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
482
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
483 ;; With GNOME_FONT_PICKER_MODE_USER_WIDGET
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
484 (gtk-import-function nil gnome_font_picker_uw_set_widget
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
485 (GnomeFontPicker . gfp)
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
486 (GtkWidget . widget))
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 ;; Functions to interface with GtkFontSelectionDialog
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
489 (gtk-import-function GtkString gnome_font_picker_get_font_name
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
490 (GnomeFontPicker . gfp))
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
491
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
492 ;;;GdkFont* gnome_font_picker_get_font (GnomeFontPicker *gfp);
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
493
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
494 (gtk-import-function gboolean gnome_font_picker_set_font_name
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
495 (GnomeFontPicker . gfp)
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
496 (GtkString . fontname))
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
497
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
498 (gtk-import-function GtkString gnome_font_picker_get_preview_text
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
499 (GnomeFontPicker . gfp))
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 (gtk-import-function nil gnome_font_picker_set_preview_text
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
502 (GnomeFontPicker . gfp)
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
503 (GtkString . text))
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
504
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
505
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
506 (gtk-import-function GtkType gnome_href_get_type)
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
507 (gtk-import-function GtkWidget gnome_href_new
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
508 (GtkString . url)
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
509 (GtkString . label))
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
510
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
511 (gtk-import-function nil gnome_href_set_url
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
512 (GnomeHRef . href)
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
513 (GtkString . url))
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
514 (gtk-import-function GtkString gnome_href_get_url
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
515 (GnomeHRef . href))
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
516
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
517 (gtk-import-function nil gnome_href_set_label
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
518 (GnomeHRef . href)
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
519 (GtkString . label))
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
520
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
521 (gtk-import-function GtkString gnome_href_get_label
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
522 (GnomeHRef . href))
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
523
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
524
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
525 ;; Stock icons, buttons, and menu items.
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 ;; A short description:
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
528
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
529 ;; These functions provide an applications programmer with default
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
530 ;; icons for toolbars, menu pixmaps, etc. One such `icon' should have
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
531 ;; at least three pixmaps to reflect it's state. There is a `regular'
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
532 ;; pixmap, a `disabled' pixmap and a `focused' pixmap. You can get
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
533 ;; either each of these pixmaps by calling gnome_stock_pixmap or you
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
534 ;; can get a widget by calling gnome_stock_pixmap_widget. This widget
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
535 ;; is a container which gtk_widget_shows the pixmap, that is
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
536 ;; reflecting the current state of the widget. If for example you
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
537 ;; gtk_container_add this widget to a button, which is currently not
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
538 ;; sensitive, the widget will just show the `disabled' pixmap. If the
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
539 ;; state of the button changes to sensitive, the widget will change to
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
540 ;; the `regular' pixmap. The `focused' pixmap will be shown, when the
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
541 ;; mouse pointer enters the widget.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
542
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
543 ;; To support themability, we use (char *) to call those functions. A
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
544 ;; new theme might register new icons by calling
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
545 ;; gnome_stock_pixmap_register, or may change existing icons by
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
546 ;; calling gnome_stock_pixmap_change. An application should check (by
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
547 ;; calling gnome_stock_pixmap_checkfor), if the current theme supports
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
548 ;; an uncommon icon, before using it. The only icons an app can rely
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
549 ;; on, are those defined in this header file.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
550
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
551 ;; We now have stock buttons too. To use them, just replace any
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
552 ;; gtk_button_new{_with_label} with
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
553 ;; gnome_stock_button(GNOME_STOCK_BUTTON_...). This function returns
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
554 ;; a GtkButton with a gettexted default text and an icon.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
555
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
556 ;; There's an additional feature, which might be interesting. If an
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
557 ;; application calls gnome_stock_pixmap_register and uses it by
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
558 ;; calling gnome_stock_pixmap_widget, it doesn't have to care about
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
559 ;; the state_changed signal to display the appropriate pixmap
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
560 ;; itself. Additionally gnome-stock generates a disabled version of a
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
561 ;; pixmap automatically, when no pixmap for a disabled state is
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
562 ;; provided.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
563
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
564
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
565 ;; State:
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 ;; currently implemented:
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
568 ;; - gnome_stock_pixmap
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
569 ;; - gnome_stock_pixmap_widget
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
570 ;; - gnome_stock_pixmap_checkfor
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
571 ;; - GnomeStockPixmapWidget
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
572 ;; - gnome_stock_button
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
573 ;; - gnome_stock_pixmap_register
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
574
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
575 ;; not implemented:
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
576 ;; - gnome_stock_pixmap_change
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 ;; The names of `well known' icons. I define these strings mainly to
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
579 ;; prevent errors due to typos.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
580
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
581 (defvar gnome-stock-pixmaps '(
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
582 (new . "New")
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
583 (open . "Open")
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
584 (close . "Close")
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
585 (revert . "Revert")
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
586 (save . "Save")
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
587 (save-as . "Save As")
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
588 (cut . "Cut")
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
589 (copy . "Copy")
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
590 (paste . "Paste")
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
591 (clear . "Clear")
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
592 (properties . "Properties")
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
593 (preferences . "Preferences")
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
594 (help . "Help")
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
595 (scores . "Scores")
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
596 (print . "Print")
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
597 (search . "Search")
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
598 (srchrpl . "Search/Replace")
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
599 (back . "Back")
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
600 (forward . "Forward")
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
601 (first . "First")
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
602 (last . "Last")
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
603 (home . "Home")
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
604 (stop . "Stop")
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
605 (refresh . "Refresh")
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
606 (undo . "Undo")
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
607 (redo . "Redo")
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
608 (timer . "Timer")
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
609 (timer-stop . "Timer Stopped")
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
610 (mail . "Mail")
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
611 (mail-rcv . "Receive Mail")
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
612 (mail-snd . "Send Mail")
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
613 (mail-rpl . "Reply to Mail")
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
614 (mail-fwd . "Forward Mail")
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
615 (mail-new . "New Mail")
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
616 (trash . "Trash")
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
617 (trash-full . "Trash Full")
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
618 (undelete . "Undelete")
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
619 (spellcheck . "Spellchecker")
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
620 (mic . "Microphone")
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
621 (line-in . "Line In")
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
622 (cdrom . "Cdrom")
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
623 (volume . "Volume")
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
624 (midi . "Midi")
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
625 (book-red . "Book Red")
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
626 (book-green . "Book Green")
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
627 (book-blue . "Book Blue")
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
628 (BOOK-YELLOW . "Book Yellow")
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
629 (BOOK-OPEN . "Book Open")
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
630 (ABOUT . "About")
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
631 (QUIT . "Quit")
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
632 (MULTIPLE . "Multiple")
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
633 (NOT . "Not")
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
634 (CONVERT . "Convert")
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
635 (JUMP-TO . "Jump To")
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
636 (UP . "Up")
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
637 (DOWN . "Down")
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
638 (TOP . "Top")
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
639 (BOTTOM . "Bottom")
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
640 (ATTACH . "Attach")
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
641 (INDEX . "Index")
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
642 (FONT . "Font")
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
643 (EXEC . "Exec")
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 (ALIGN-LEFT . "Left")
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
646 (ALIGN-RIGHT . "Right")
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
647 (ALIGN-CENTER . "Center")
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
648 (ALIGN-JUSTIFY . "Justify")
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 (TEXT-BOLD . "Bold")
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
651 (TEXT-ITALIC . "Italic")
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
652 (TEXT-UNDERLINE . "Underline")
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
653 (TEXT-STRIKEOUT . "Strikeout")
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 (TEXT-INDENT . "Text Indent")
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
656 (TEXT-UNINDENT . "Text Unindent")
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
657
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
658 (EXIT . "Quit")
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 (COLORSELECTOR . "Color Select")
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 (ADD . "Add")
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
663 (REMOVE . "Remove")
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
664
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
665 (TABLE-BORDERS . "Table Borders")
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
666 (TABLE-FILL . "Table Fill")
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
667
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
668 (TEXT-BULLETED-LIST . "Text Bulleted List")
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
669 (TEXT-NUMBERED-LIST . "Text Numbered List")
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
670 ))
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 ;; The basic pixmap version of an icon.
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 ;;#define GNOME_STOCK_PIXMAP_REGULAR "regular"
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
675 ;;#define GNOME_STOCK_PIXMAP_DISABLED "disabled"
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
676 ;;#define GNOME_STOCK_PIXMAP_FOCUSED "focused"
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
677
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
678 (defvar gnome-stock-pixmap-widget-new nil)
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
679
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
680 (defun gnome-stock-pixmap-widget-new (window symbol)
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
681 "Load a stock pixmap named SYMBOL using WINDOW as the parent."
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
682 (if (not gnome-stock-pixmap-widget-new)
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
683 (setq gnome-stock-pixmap-widget-new (gtk-import-function-internal
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
684 'GtkWidget
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
685 "gnome_stock_pixmap_widget_new"
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
686 '(GtkWidget GtkString))))
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
687 (let ((translation (assq symbol gnome-stock-pixmaps)))
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
688 (if (not translation)
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
689 (error "Unknown stock pixmap: %S" symbol))
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
690 (gtk-call-function gnome-stock-pixmap-widget-new (list window (cdr translation)))))
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
691
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
692 (gtk-import-function GtkType gnome_stock_get_type)
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
693 (gtk-import-function GtkWidget gnome_stock_new)
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
694 (gtk-import-function GtkWidget gnome_stock_new_with_icon '(GtkString . icon))
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
695 (gtk-import-function gboolean gnome_stock_set_icon
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
696 (GnomeStock . stock)
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
697 (GtkString . icon))
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
698
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
699 ;; just fetch a GnomeStock(PixmapWidget)
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
700 ;; It is possible to specify a filename instead of an icon name. Gnome stock
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
701 ;; will use gnome_pixmap_file to find the pixmap and return a GnomeStock widget
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
702 ;; from that file.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
703 (gtk-import-function GtkWidget gnome_stock_pixmap_widget
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
704 (GtkWidget . window)
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
705 (GtkString . icon))
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
706
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
707 ;; This function loads that file scaled to the specified size. Unlike
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
708 ;; gnome_pixmap_new_from_file_at_size this function uses antializing and stuff
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
709 ;; to scale the pixmap
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
710 (gtk-import-function GtkWidget gnome_stock_pixmap_widget_at_size
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
711 (GtkWidget . window)
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
712 (GtkString . icon)
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
713 (guint . width)
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
714 (guint . height))
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
715
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
716 (gtk-import-function nil gnome_stock_pixmap_widget_set_icon
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
717 (GnomeStock . widget)
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
718 (GtkString . icon))
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
719
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
720 ;;;gint gnome_stock_pixmap_register (const char *icon,
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
721 ;;; const char *subtype,
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
722 ;;; GnomeStockPixmapEntry *entry);
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
723
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
724 ;; change an existing entry. returns non-zero on success
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
725 ;;;gint gnome_stock_pixmap_change (const char *icon,
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
726 ;;; const char *subtype,
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
727 ;;; GnomeStockPixmapEntry *entry);
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
728
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
729 ;; check for the existance of an entry. returns the entry if it
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
730 ;; exists, or NULL otherwise
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
731 ;;;GnomeStockPixmapEntry *gnome_stock_pixmap_checkfor (const char *icon,
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
732 ;;; const char *subtype);
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
733
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
734 ;; buttons
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
735
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
736 (defvar gnome-stock-buttons '((ok . "Button_Ok")
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
737 (cancel . "Button_Cancel")
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
738 (yes . "Button_Yes")
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
739 (no . "Button_No")
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
740 (close . "Button_Close")
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
741 (apply . "Button_Apply")
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
742 (help . "Button_Help")
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
743 (next . "Button_Next")
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
744 (prev . "Button_Prev")
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
745 (up . "Button_Up")
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
746 (down . "Button_Down")
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
747 (font . "Button_Font")))
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
748
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
749 ;; this function returns a button with a pixmap (if ButtonUseIcons is enabled)
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
750 ;; and the provided text
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
751
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
752 (gtk-import-function GtkWidget gnome_pixmap_button
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
753 (GtkWidget . pixmap)
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
754 (GtkString . text))
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
755 (gtk-import-function nil gnome_button_can_default
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
756 (GtkButton . button)
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
757 (gboolean . can_default))
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
758
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
759 (defvar gnome-stock-button nil)
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
760
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
761 (defun gnome-stock-button (symbol)
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
762 "Returns a default button widget for dialogs."
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
763 (if (not gnome-stock-button)
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
764 (setq gnome-stock-button (gtk-import-function-internal
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
765 'GtkWidget "gnome_stock_button"
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
766 '(GtkString))))
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
767 (let ((translation (assq symbol gnome-stock-buttons)))
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
768 (if (not translation)
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
769 (error "Unknown stock button: %S" symbol))
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
770 (gtk-call-function gnome-stock-button (list (cdr translation)))))
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
771
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
772 (defun gnome-stock-or-ordinary-button (type)
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
773 "Returns a button widget. If the TYPE argument matches a
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
774 GNOME_STOCK_BUTTON_* define, then a stock button is created.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
775 Otherwise, an ordinary button is created, and TYPE is given as the
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
776 label."
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
777 (if (stringp type) (setq type (intern type)))
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
778 (condition-case ()
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
779 (gnome-stock-button type)
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
780 (error (gtk-button-new-with-label (symbol-name type)))))
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
781
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
782 ;;/* menus */
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
783
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
784 ;;#define GNOME_STOCK_MENU_BLANK "Menu_"
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
785 ;;#define GNOME_STOCK_MENU_NEW "Menu_New"
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
786 ;;#define GNOME_STOCK_MENU_SAVE "Menu_Save"
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
787 ;;#define GNOME_STOCK_MENU_SAVE_AS "Menu_Save As"
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
788 ;;#define GNOME_STOCK_MENU_REVERT "Menu_Revert"
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
789 ;;#define GNOME_STOCK_MENU_OPEN "Menu_Open"
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
790 ;;#define GNOME_STOCK_MENU_CLOSE "Menu_Close"
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
791 ;;#define GNOME_STOCK_MENU_QUIT "Menu_Quit"
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
792 ;;#define GNOME_STOCK_MENU_CUT "Menu_Cut"
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
793 ;;#define GNOME_STOCK_MENU_COPY "Menu_Copy"
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
794 ;;#define GNOME_STOCK_MENU_PASTE "Menu_Paste"
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
795 ;;#define GNOME_STOCK_MENU_PROP "Menu_Properties"
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
796 ;;#define GNOME_STOCK_MENU_PREF "Menu_Preferences"
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
797 ;;#define GNOME_STOCK_MENU_ABOUT "Menu_About"
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
798 ;;#define GNOME_STOCK_MENU_SCORES "Menu_Scores"
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
799 ;;#define GNOME_STOCK_MENU_UNDO "Menu_Undo"
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
800 ;;#define GNOME_STOCK_MENU_REDO "Menu_Redo"
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
801 ;;#define GNOME_STOCK_MENU_PRINT "Menu_Print"
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
802 ;;#define GNOME_STOCK_MENU_SEARCH "Menu_Search"
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
803 ;;#define GNOME_STOCK_MENU_SRCHRPL "Menu_Search/Replace"
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
804 ;;#define GNOME_STOCK_MENU_BACK "Menu_Back"
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
805 ;;#define GNOME_STOCK_MENU_FORWARD "Menu_Forward"
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
806 ;;#define GNOME_STOCK_MENU_FIRST "Menu_First"
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
807 ;;#define GNOME_STOCK_MENU_LAST "Menu_Last"
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
808 ;;#define GNOME_STOCK_MENU_HOME "Menu_Home"
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
809 ;;#define GNOME_STOCK_MENU_STOP "Menu_Stop"
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
810 ;;#define GNOME_STOCK_MENU_REFRESH "Menu_Refresh"
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
811 ;;#define GNOME_STOCK_MENU_MAIL "Menu_Mail"
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
812 ;;#define GNOME_STOCK_MENU_MAIL_RCV "Menu_Receive Mail"
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
813 ;;#define GNOME_STOCK_MENU_MAIL_SND "Menu_Send Mail"
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
814 ;;#define GNOME_STOCK_MENU_MAIL_RPL "Menu_Reply to Mail"
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
815 ;;#define GNOME_STOCK_MENU_MAIL_FWD "Menu_Forward Mail"
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
816 ;;#define GNOME_STOCK_MENU_MAIL_NEW "Menu_New Mail"
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
817 ;;#define GNOME_STOCK_MENU_TRASH "Menu_Trash"
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
818 ;;#define GNOME_STOCK_MENU_TRASH_FULL "Menu_Trash Full"
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
819 ;;#define GNOME_STOCK_MENU_UNDELETE "Menu_Undelete"
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
820 ;;#define GNOME_STOCK_MENU_TIMER "Menu_Timer"
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
821 ;;#define GNOME_STOCK_MENU_TIMER_STOP "Menu_Timer Stopped"
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
822 ;;#define GNOME_STOCK_MENU_SPELLCHECK "Menu_Spellchecker"
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
823 ;;#define GNOME_STOCK_MENU_MIC "Menu_Microphone"
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
824 ;;#define GNOME_STOCK_MENU_LINE_IN "Menu_Line In"
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
825 ;;#define GNOME_STOCK_MENU_CDROM "Menu_Cdrom"
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
826 ;;#define GNOME_STOCK_MENU_VOLUME "Menu_Volume"
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
827 ;;#define GNOME_STOCK_MENU_MIDI "Menu_Midi"
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
828 ;;#define GNOME_STOCK_MENU_BOOK_RED "Menu_Book Red"
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
829 ;;#define GNOME_STOCK_MENU_BOOK_GREEN "Menu_Book Green"
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
830 ;;#define GNOME_STOCK_MENU_BOOK_BLUE "Menu_Book Blue"
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
831 ;;#define GNOME_STOCK_MENU_BOOK_YELLOW "Menu_Book Yellow"
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
832 ;;#define GNOME_STOCK_MENU_BOOK_OPEN "Menu_Book Open"
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
833 ;;#define GNOME_STOCK_MENU_CONVERT "Menu_Convert"
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
834 ;;#define GNOME_STOCK_MENU_JUMP_TO "Menu_Jump To"
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
835 ;;#define GNOME_STOCK_MENU_UP "Menu_Up"
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
836 ;;#define GNOME_STOCK_MENU_DOWN "Menu_Down"
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
837 ;;#define GNOME_STOCK_MENU_TOP "Menu_Top"
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
838 ;;#define GNOME_STOCK_MENU_BOTTOM "Menu_Bottom"
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
839 ;;#define GNOME_STOCK_MENU_ATTACH "Menu_Attach"
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
840 ;;#define GNOME_STOCK_MENU_INDEX "Menu_Index"
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
841 ;;#define GNOME_STOCK_MENU_FONT "Menu_Font"
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
842 ;;#define GNOME_STOCK_MENU_EXEC "Menu_Exec"
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
843
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
844 ;;#define GNOME_STOCK_MENU_ALIGN_LEFT "Menu_Left"
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
845 ;;#define GNOME_STOCK_MENU_ALIGN_RIGHT "Menu_Right"
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
846 ;;#define GNOME_STOCK_MENU_ALIGN_CENTER "Menu_Center"
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
847 ;;#define GNOME_STOCK_MENU_ALIGN_JUSTIFY "Menu_Justify"
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
848
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
849 ;;#define GNOME_STOCK_MENU_TEXT_BOLD "Menu_Bold"
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
850 ;;#define GNOME_STOCK_MENU_TEXT_ITALIC "Menu_Italic"
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
851 ;;#define GNOME_STOCK_MENU_TEXT_UNDERLINE "Menu_Underline"
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
852 ;;#define GNOME_STOCK_MENU_TEXT_STRIKEOUT "Menu_Strikeout"
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
853
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
854 ;;#define GNOME_STOCK_MENU_EXIT GNOME_STOCK_MENU_QUIT
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
855
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
856
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
857 ;;/* returns a GtkMenuItem with an stock icon and text */
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
858 ;;GtkWidget *gnome_stock_menu_item (const char *type,
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
859 ;; const char *text);
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
860
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
861
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
862 ;; Creates a toplevel window with a shaped mask. Useful for making the DnD
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
863 ;; windows
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
864 ;; GtkWidget *gnome_stock_transparent_window (const char *icon, const char *subtype);
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
865
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
866 ;;;/*
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
867 ;;; * Return a GdkPixmap and GdkMask for a stock pixmap
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
868 ;;; */
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
869 ;;;void gnome_stock_pixmap_gdk (const char *icon,
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
870 ;;; const char *subtype,
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
871 ;;; GdkPixmap **pixmap,
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
872 ;;; GdkPixmap **mask);
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
873
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
874
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
875 (gtk-import-function GtkType gnome_druid_get_type)
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
876 (gtk-import-function GtkWidget gnome_druid_new)
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
877 (gtk-import-function void gnome_druid_set_buttons_sensitive
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
878 (GnomeDruid . druid)
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
879 (gboolean . back_sensitive)
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
880 (gboolean . next_sensitive)
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
881 (gboolean . cancel_sensitive))
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
882 (gtk-import-function void gnome_druid_set_show_finish
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
883 (GnomeDruid . druid)
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
884 (gboolean . show_finish))
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
885 (gtk-import-function void gnome_druid_prepend_page
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
886 (GnomeDruid . druid)
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
887 (GnomeDruidPage . page))
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
888 (gtk-import-function void gnome_druid_insert_page
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
889 (GnomeDruid . druid)
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
890 (GnomeDruidPage . back_page)
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
891 (GnomeDruidPage . page))
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
892 (gtk-import-function void gnome_druid_append_page
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
893 (GnomeDruid . druid)
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
894 (GnomeDruidPage . page))
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
895 (gtk-import-function void gnome_druid_set_page
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
896 (GnomeDruid . druid)
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
897 (GnomeDruidPage . page))
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
898
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
899 (gtk-import-function GtkType gnome_druid_page_get_type)
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
900 (gtk-import-function gboolean gnome_druid_page_next (GnomeDruidPage . druid_page))
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
901 (gtk-import-function gboolean gnome_druid_page_prepare (GnomeDruidPage . druid_page))
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
902 (gtk-import-function gboolean gnome_druid_page_back (GnomeDruidPage . druid_page))
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
903 (gtk-import-function gboolean gnome_druid_page_cancel (GnomeDruidPage . druid_page))
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
904 (gtk-import-function gboolean gnome_druid_page_finish (GnomeDruidPage . druid_page))
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
905
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
906
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
907 (gtk-import-function GtkType gnome_druid_page_start_get_type)
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
908 (gtk-import-function GtkWidget gnome_druid_page_start_new)
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
909
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
910 ;; #### BOGUS!
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
911 '(gtk-import-function GtkWidget gnome_druid_page_start_new_with_vals
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
912 (GtkString . title)
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
913 (GtkString . text)
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
914 (GdkImlibImage . logo)
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
915 (GdkImlibImage . watermark))
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
916
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
917 (gtk-import-function void gnome_druid_page_start_set_bg_color
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
918 (GnomeDruidPageStart . druid_page_start)
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
919 (GdkColor . color))
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
920 (gtk-import-function void gnome_druid_page_start_set_textbox_color
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
921 (GnomeDruidPageStart . druid_page_start)
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
922 (GdkColor . color))
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
923 (gtk-import-function void gnome_druid_page_start_set_logo_bg_color
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
924 (GnomeDruidPageStart . druid_page_start)
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
925 (GdkColor . color))
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
926 (gtk-import-function void gnome_druid_page_start_set_title_color
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
927 (GnomeDruidPageStart . druid_page_start)
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
928 (GdkColor . color))
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
929 (gtk-import-function void gnome_druid_page_start_set_text_color
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
930 (GnomeDruidPageStart . druid_page_start)
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
931 (GdkColor . color))
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
932 (gtk-import-function void gnome_druid_page_start_set_text
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
933 (GnomeDruidPageStart . druid_page_start)
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
934 (GtkString . text))
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
935 (gtk-import-function void gnome_druid_page_start_set_title
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
936 (GnomeDruidPageStart . druid_page_start)
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
937 (GtkString . title))
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
938
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
939 ;; #### BOGUS!
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
940 '(gtk-import-function void gnome_druid_page_start_set_logo
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
941 (GnomeDruidPageStart . druid_page_start)
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
942 (GdkImlibImage . logo_image))
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
943 ;; #### BOGUS!
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
944 '(gtk-import-function void gnome_druid_page_start_set_watermark
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
945 (GnomeDruidPageStart . druid_page_start)
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
946 (GdkImlibImage . watermark))
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
947
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
948
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
949 (gtk-import-function GtkType gnome_druid_page_standard_get_type)
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
950 (gtk-import-function GtkWidget gnome_druid_page_standard_new)
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
951 ;; #### BOGUS!
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
952 '(gtk-import-function GtkWidget gnome_druid_page_standard_new_with_vals
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
953 (GtkString . title)
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
954 (GdkImlibImage . logo))
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
955 (gtk-import-function void gnome_druid_page_standard_set_bg_color
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
956 (GnomeDruidPageStandard . druid_page_standard)
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
957 (GdkColor . color))
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
958 (gtk-import-function void gnome_druid_page_standard_set_logo_bg_color
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
959 (GnomeDruidPageStandard . druid_page_standard)
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
960 (GdkColor . color))
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
961 (gtk-import-function void gnome_druid_page_standard_set_title_color
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
962 (GnomeDruidPageStandard . druid_page_standard)
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
963 (GdkColor . color))
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
964 (gtk-import-function void gnome_druid_page_standard_set_title
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
965 (GnomeDruidPageStandard . druid_page_standard)
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
966 (GtkString . title))
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
967 ;; #### BOGUS!
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
968 '(gtk-import-function void gnome_druid_page_standard_set_logo
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
969 (GnomeDruidPageStandard . druid_page_standard)
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
970 (GdkImlibImage . logo_image))
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
971
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
972
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
973 (gtk-import-function GtkType gnome_druid_page_finish_get_type)
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
974 (gtk-import-function GtkWidget gnome_druid_page_finish_new)
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
975 (gtk-import-function GtkWidget gnome_druid_page_finish_new_with_vals
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
976 (GtkString . title)
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
977 (GtkString . text)
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
978 (GdkImlibImage . logo)
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
979 (GdkImlibImage . watermark))
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
980
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
981 (gtk-import-function void gnome_druid_page_finish_set_bg_color
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
982 (GnomeDruidPageFinish . druid_page_finish)
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
983 (GdkColor . color))
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
984 (gtk-import-function void gnome_druid_page_finish_set_textbox_color
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
985 (GnomeDruidPageFinish . druid_page_finish)
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
986 (GdkColor . color))
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
987 (gtk-import-function void gnome_druid_page_finish_set_logo_bg_color
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
988 (GnomeDruidPageFinish . druid_page_finish)
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
989 (GdkColor . color))
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
990 (gtk-import-function void gnome_druid_page_finish_set_title_color
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
991 (GnomeDruidPageFinish . druid_page_finish)
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
992 (GdkColor . color))
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
993 (gtk-import-function void gnome_druid_page_finish_set_text_color
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
994 (GnomeDruidPageFinish . druid_page_finish)
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
995 (GdkColor . color))
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
996 (gtk-import-function void gnome_druid_page_finish_set_text
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
997 (GnomeDruidPageFinish . druid_page_finish)
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
998 (GtkString . text))
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
999 (gtk-import-function void gnome_druid_page_finish_set_title
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
1000 (GnomeDruidPageFinish . druid_page_finish)
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
1001 (GtkString . title))
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
1002 ;; #### BOGUS!
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
1003 '(gtk-import-function void gnome_druid_page_finish_set_logo
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
1004 (GnomeDruidPageFinish . druid_page_finish)
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
1005 (GdkImlibImage . logo_image))
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
1006 ;; #### BOGUS!
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
1007 '(gtk-import-function void gnome_druid_page_finish_set_watermark
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
1008 (GnomeDruidPageFinish . druid_page_finish)
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
1009 (GdkImlibImage . watermark))
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
1010
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
1011 (provide 'gnome-widgets)