annotate lisp/gnome-widgets.el @ 462:0784d089fdc9 r21-2-46

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