#include <gtk/gtk.h>
Go to the source code of this file.
void _ev_message_area_add_buttons_valist |
( |
EvMessageArea * |
area, |
|
|
const gchar * |
first_button_text, |
|
|
va_list |
args |
|
) |
| |
Definition at line 232 of file ev-message-area.c.
239 if (first_button_text == NULL)
242 text = first_button_text;
243 response_id = va_arg (args, gint);
245 while (text != NULL) {
246 gtk_info_bar_add_button (GTK_INFO_BAR (area), text, response_id);
248 text = va_arg (args, gchar*);
252 response_id = va_arg (args,
int);
GType ev_message_area_get_type |
( |
void |
) | |
|
GtkWidget* ev_message_area_new |
( |
GtkMessageType |
type, |
|
|
const gchar * |
text, |
|
|
const gchar * |
first_button_text, |
|
|
|
... |
|
) |
| |
Definition at line 263 of file ev-message-area.c.
271 "message-type", type,
275 if (first_button_text) {
278 va_start (args, first_button_text);
280 first_button_text, args);
void ev_message_area_set_image |
( |
EvMessageArea * |
area, |
|
|
GtkWidget * |
image |
|
) |
| |
Definition at line 288 of file ev-message-area.c.
297 parent = gtk_widget_get_parent (area->
priv->
image);
298 gtk_container_add (GTK_CONTAINER (parent), image);
299 gtk_container_remove (GTK_CONTAINER (parent), area->
priv->
image);
300 gtk_box_reorder_child (GTK_BOX (parent), image, 0);
304 g_object_notify (G_OBJECT (area),
"image");
void ev_message_area_set_image_from_stock |
( |
EvMessageArea * |
area, |
|
|
const gchar * |
stock_id |
|
) |
| |
Definition at line 308 of file ev-message-area.c.
312 g_return_if_fail (stock_id != NULL);
314 gtk_image_set_from_stock (GTK_IMAGE (area->
priv->
image),
316 GTK_ICON_SIZE_DIALOG);
void ev_message_area_set_secondary_text |
( |
EvMessageArea * |
area, |
|
|
const gchar * |
str |
|
) |
| |
Definition at line 339 of file ev-message-area.c.
347 msg = g_strdup_printf (
"<small>%s</small>", str);
356 g_object_notify (G_OBJECT (area),
"secondary-text");
void ev_message_area_set_text |
( |
EvMessageArea * |
area, |
|
|
const gchar * |
str |
|
) |
| |
Definition at line 320 of file ev-message-area.c.
328 msg = g_strdup_printf (
"<b>%s</b>", str);
329 gtk_label_set_markup (GTK_LABEL (area->
priv->
label), msg);
332 gtk_label_set_markup (GTK_LABEL (area->
priv->
label), NULL);
335 g_object_notify (G_OBJECT (area),
"text");