gimpdialog

Name

gimpdialog -- Constructors for GtkDialog's and action_areas as well as other dialog-related stuff.

Synopsis



GtkWidget*  gimp_dialog_new                 (const gchar *title,
                                             const gchar *wmclass_name,
                                             GimpHelpFunc help_func,
                                             const gchar *help_data,
                                             GtkWindowPosition position,
                                             gint allow_shrink,
                                             gint allow_grow,
                                             gint auto_shrink,
                                             ...);
GtkWidget*  gimp_dialog_newv                (const gchar *title,
                                             const gchar *wmclass_name,
                                             GimpHelpFunc help_func,
                                             const gchar *help_data,
                                             GtkWindowPosition position,
                                             gint allow_shrink,
                                             gint allow_grow,
                                             gint auto_shrink,
                                             va_list args);
void        gimp_dialog_create_action_area  (GimpDialog *dialog,
                                             ...);
void        gimp_dialog_create_action_areav (GimpDialog *dialog,
                                             va_list args);

Description

Details

gimp_dialog_new ()

GtkWidget*  gimp_dialog_new                 (const gchar *title,
                                             const gchar *wmclass_name,
                                             GimpHelpFunc help_func,
                                             const gchar *help_data,
                                             GtkWindowPosition position,
                                             gint allow_shrink,
                                             gint allow_grow,
                                             gint auto_shrink,
                                             ...);

This function simply packs the action_area arguments passed in "..." into a va_list variable and passes everything to gimp_dialog_newv().

For a description of the format of the va_list describing the action_area buttons see gimp_dialog_create_action_areav().


gimp_dialog_newv ()

GtkWidget*  gimp_dialog_newv                (const gchar *title,
                                             const gchar *wmclass_name,
                                             GimpHelpFunc help_func,
                                             const gchar *help_data,
                                             GtkWindowPosition position,
                                             gint allow_shrink,
                                             gint allow_grow,
                                             gint auto_shrink,
                                             va_list args);

This function performs all neccessary setps to set up a standard GIMP dialog.

The va_list describing the action_area buttons will be passed to gimp_dialog_create_action_areav().


gimp_dialog_create_action_area ()

void        gimp_dialog_create_action_area  (GimpDialog *dialog,
                                             ...);

This function simply packs the action_area arguments passed in "..." into a va_list variable and passes everything to gimp_dialog_create_action_areav().


gimp_dialog_create_action_areav ()

void        gimp_dialog_create_action_areav (GimpDialog *dialog,
                                             va_list args);

Please note that the delete_event will only be connected to the first button with the "connect_delete" boolean set to true. It is possible to just connect the delete_event to a callback without adding a new button with a special label "_delete_event_", connect_delete == true and callback != NULL.

The va_list describing the action_area GtkButton's has the following format: