2
2
@c %start of fragment
4
@deftp Class <gnome-app-bar>
5
This @code{<gobject>} class defines the following properties:
9
Create a progress widget.
12
Create a status widget.
15
Level of user activity required.
21
@defop Signal <gnome-app-bar> user-response
24
@defop Signal <gnome-app-bar> clear-prompt
27
@deffn Function gnome-appbar-new (has_progress@tie{}@code{bool}) (has_status@tie{}@code{bool}) (interactivity@tie{}@code{<gnome-preferences-type>}) @result{}@tie{} (ret@tie{}@code{<gtk-widget>})
28
Create a new GNOME application status bar. If @var{has-progress} is
29
@samp{@code{#t}}, a small progress bar widget will be created, and placed on the
30
left side of the appbar. If @var{has-status} is @samp{@code{#t}}, a status bar,
31
possibly an editable one, is created.
33
The @var{interactivity} parameter determines whether the appbar is an
34
interactive "minibuffer" or just a status bar. If it is set to
35
@code{<gnome-preferences-never>}, it is never interactive. If it is set to
36
@code{<gnome-preferences-user>} we respect user preferences from ui-properties.
37
If it's @code{<gnome-preferences-always>} we are interactive whether the user
38
likes it or not. Basically, if your app supports both interactive and not (for
39
example, if you use the gnome-app-util interfaces), you should use
40
@code{<gnome-preferences-user>}. Otherwise, use the setting you support. Please
41
note that "interactive" mode is not functional now; GtkEntry is inadequate and
42
so a custom widget will be written eventually.
46
@samp{@code{#t}} if appbar needs progress bar widget, @samp{@code{#f}} if not.
49
@samp{@code{#t}} if appbar needs status bar widget, @samp{@code{#f}} if not.
52
Level of user activity required.
55
Pointer to new @code{<gnome-app-bar>} widget.
61
@deffn Function gnome-appbar-set-status (self@tie{}@code{<gnome-app-bar>}) (status@tie{}@code{mchars})
62
Sets the status label without changing widget state; next call to
63
@code{gnome-appbar-set-status} or @code{gnome-appbar-push} will destroy this
68
A @code{<gnome-app-bar>} instance.
71
Text to which status label will be set.
77
@deffn Function gnome-appbar-get-status (self@tie{}@code{<gnome-app-bar>}) @result{}@tie{} (ret@tie{}@code{<gtk-widget>})
78
Retrieves the statusbar widget.
82
A @code{<gnome-app-bar>} instance.
85
A pointer to the statusbar widget.
91
@deffn Function gnome-appbar-set-default (self@tie{}@code{<gnome-app-bar>}) (default_status@tie{}@code{mchars})
92
What to show when showing nothing else is on the stack; defaults to the empty
97
A @code{<gnome-app-bar>} instance.
100
Text for status label.
106
@deffn Function gnome-appbar-push (self@tie{}@code{<gnome-app-bar>}) (status@tie{}@code{mchars})
107
Push a new status message onto the status bar stack and display it.
111
A @code{<gnome-app-bar>} instance.
114
Text of status message.
120
@deffn Function gnome-appbar-pop (self@tie{}@code{<gnome-app-bar>})
121
Remove current status message, and display previous status message, if any. It
122
is fine to call this with an empty stack.
126
A @code{<gnome-app-bar>} instance.
132
@deffn Function gnome-appbar-clear-stack (self@tie{}@code{<gnome-app-bar>})
133
Remove all status messages from @var{appbar}, and display default status message
138
A @code{<gnome-app-bar>} instance.
144
@deffn Function gnome-appbar-get-progress (self@tie{}@code{<gnome-app-bar>}) @result{}@tie{} (ret@tie{}@code{<gtk-progress-bar>})
145
Retrieves the progress bar widget for further manipulation.
149
A @code{<gnome-app-bar>} instance.
152
A @code{<gtk-progress-bar>} widget which is @var{appbar}'s progress bar, or
153
@samp{@code{#f}} if @var{appbar} has no progress bar.
159
@deffn Function gnome-appbar-refresh (self@tie{}@code{<gnome-app-bar>})
160
Refresh the status message bar by redrawing the item on the top of the stack, or
161
the default value if the stack is empty.. Useful to force the message from a
162
previous call to @code{gnome-appbar-set-status} to disappear.
166
A @code{<gnome-app-bar>} instance.
172
@deffn Function gnome-appbar-set-prompt (self@tie{}@code{<gnome-app-bar>}) (prompt@tie{}@code{mchars}) (modal@tie{}@code{bool})
173
Put a prompt in the appbar and wait for a response. When the user responds or
174
cancels, a 'user_response' signal is emitted.
178
A @code{<gnome-app-bar>} instance.
181
Text of the prompt message.
184
If @samp{@code{#t}}, grabs input.
190
@deffn Function gnome-appbar-clear-prompt (self@tie{}@code{<gnome-app-bar>})
191
Remove any prompt from the status message bar.
195
A @code{<gnome-app-bar>} instance.
201
@deffn Function gnome-appbar-get-response (self@tie{}@code{<gnome-app-bar>}) @result{}@tie{} (ret@tie{}@code{mchars})
202
Get the response to the prompt, if any.
206
A @code{<gnome-app-bar>} instance.
209
Text from @var{appbar} entry widget, as entered by user. This string should be
210
freed by the caller (using @code{gfree}) when no longer required.
217
5
@c %end of fragment