annotate lisp/gnome-widgets.el @ 5887:6eca500211f4

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