![]() |
![]() |
![]() |
libxfcegui4 Reference Manual | ![]() |
---|---|---|---|---|
Top | Description |
#include <libxfcegui4/libxfcegui4.h> void xfce_err (const gchar *format
,...
); void xfce_verr (const gchar *format
,va_list ap
); void xfce_warn (const gchar *format
,...
); void xfce_vwarn (const gchar *format
,va_list ap
); void xfce_info (const gchar *format
,...
); void xfce_vinfo (const gchar *format
,va_list ap
); gboolean xfce_confirm (const gchar *text
,const gchar *stock_id
,const gchar *action
); gint xfce_message_dialog (GtkWindow *parent
,const gchar *title
,const gchar *icon_id
,const gchar *primary_text
,const gchar *secondary_text
,const gchar *first_button_type
,...
); GtkWidget * xfce_create_header (GdkPixbuf *icon
,const gchar *text
); GtkWidget * xfce_create_header_with_image (GtkWidget *image
,const gchar *text
); GtkWidget * xfce_create_mixed_button (const gchar *stock
,const gchar *text
); GtkWidget * xfce_create_small_label (const gchar *text
);
void xfce_err (const gchar *format
,...
);
Displays a modal error dialog to the user and blocks until the users clicks the close button.
|
printf-style format string. |
void xfce_verr (const gchar *format
,va_list ap
);
Displays a modal error dialog to the user and blocks until the users clicks the close button.
|
printf-style format string. |
|
variable argument list pointer. |
void xfce_warn (const gchar *format
,...
);
Displays a modal warning dialog to the user and blocks until the users clicks the close button.
|
printf-style format string. |
void xfce_vwarn (const gchar *format
,va_list ap
);
Displays a modal warning dialog to the user and blocks until the users clicks the close button.
|
printf-style format string. |
|
variable argument list pointer. |
void xfce_info (const gchar *format
,...
);
Displays a modal info dialog to the user and blocks until the users clicks the close button.
|
printf-style format string. |
void xfce_vinfo (const gchar *format
,va_list ap
);
Displays a modal info dialog to the user and blocks until the users clicks the close button.
|
printf-style format string. |
|
variable argument list pointer. |
gboolean xfce_confirm (const gchar *text
,const gchar *stock_id
,const gchar *action
);
Runs a modal confirmation dialog, that has a 'cancel' and a 'confirm'
button. The 'confirm' button text can be set by action
if given.
If stock_id
is equal to GTK_STOCK_YES, the 'cancel' button becomes a 'no' button.
|
a question text |
|
a stock item name |
|
if non-NULL, this text is used on the confirm button together
with the stock icon. |
Returns : |
TRUE if the user confirms, else FALSE. |
gint xfce_message_dialog (GtkWindow *parent
,const gchar *title
,const gchar *icon_id
,const gchar *primary_text
,const gchar *secondary_text
,const gchar *first_button_type
,...
);
xfce_message_dialog()
creates a dialog widget as in
xfce_message_dialog_new()
, and then runs the dialog as a modal dialog and
returns the response id selected by the user.
See xfce_message_dialog_new()
for more information.
|
Transient parent of the dialog, or NULL
|
|
Title of the dialog, or NULL
|
|
Gtk stock icon to show in the dialog |
|
Text shown in large bold font |
|
Text shown in normal font |
|
Type of the first button, or NULL
|
Returns : |
The selected response id. |
GtkWidget * xfce_create_header (GdkPixbuf *icon
,const gchar *text
);
Creates a header with an optional icon
(may be NULL) in larger bold
font. Background and foreground colors are taken from Gtk+ style.
|
a GdkPixbuf or NULL if no icon should be displayed in the header. |
|
a text to be displayed in the header. |
Returns : |
the container widget that contains the header widgets. |
GtkWidget * xfce_create_header_with_image (GtkWidget *image
,const gchar *text
);
Creates a header with an optional image
(may be NULL) in larger bold
font. Background and foreground colors are taken from Gtk+ style.
|
a GtkImage or NULL if no image should be displayed in the header. |
|
the text to be displayed in the header. |
Returns : |
the container widget that contains the header widgets. |
GtkWidget * xfce_create_mixed_button (const gchar *stock
,const gchar *text
);
Creates a button with both stock
icon and text
.
|
a stock item name. |
|
a text to display. |
Returns : |
the newly created mixed button widget. |