| Totem Reference Manual | ||||
|---|---|---|---|---|
| Top | Description | ||||
#include <totem-interface.h> void totem_interface_error (const char *title, const char *reason, GtkWindow *parent); void totem_interface_error_blocking (const char *title, const char *reason, GtkWindow *parent); void totem_interface_error_with_link (const char *title, const char *reason, const char *uri, const char *label, GtkWindow *parent, Totem *totem); void totem_interface_boldify_label (GtkBuilder *builder, const char *name); void totem_interface_italicise_label (GtkBuilder *builder, const char *name);
A collection of interface utility functions, for loading interfaces and displaying errors.
void totem_interface_error (const char *title,
const char *reason,
GtkWindow *parent);
Display a modal error dialogue with title as its primary error text, and reason
as its secondary text.
|
the error title |
|
the error reason (secondary text) |
|
the error dialogue's parent GtkWindow |
void totem_interface_error_blocking (const char *title,
const char *reason,
GtkWindow *parent);
Display a modal error dialogue like totem_interface_error() which blocks until the user has
dismissed it.
|
the error title |
|
the error reason (secondary text) |
|
the error dialogue's parent GtkWindow |
void totem_interface_error_with_link (const char *title,
const char *reason,
const char *uri,
const char *label,
GtkWindow *parent,
Totem *totem);
Display a modal error dialogue like totem_interface_error(),
but add a button which will open uri in a browser window.
|
the error title |
|
the error reason (secondary text) |
|
the URI to open |
|
a label for the URI's button, or NULL to use uri as the label
|
|
the error dialogue's parent GtkWindow |
|
a TotemObject |
void totem_interface_boldify_label (GtkBuilder *builder, const char *name);
Makes the text of the name label bold.
This should be used instead of putting the Pango markup directly into a GtkBuilder UI file so that translators don't have to translate text formatting markup unnecessarily.
This function can only be used if the entire text of a label is to be made bold.
|
a GtkBuilder |
|
the label name |
void totem_interface_italicise_label (GtkBuilder *builder, const char *name);
Makes the text of the name label italic.
This should be used instead of putting the Pango markup directly into a GtkBuilder UI file so that translators don't have to translate text formatting markup unnecessarily.
This function can only be used if the entire text of a label is to be made italic.
|
a GtkBuilder |
|
the label name |