Top | ![]() |
![]() |
![]() |
![]() |
GimpDialogGimpDialog — Constructors for GtkDialog's and action_areas as well as other dialog-related stuff. |
![]() |
GtkWidget * | gimp_dialog_new () |
GtkWidget * | gimp_dialog_new_valist () |
GtkWidget * | gimp_dialog_add_button () |
void | gimp_dialog_add_buttons () |
void | gimp_dialog_add_buttons_valist () |
gint | gimp_dialog_run () |
void | gimp_dialogs_show_help_button () |
#define | gimp_dialog_set_alternative_button_order() |
void | gimp_dialog_set_alternative_button_order_from_array () |
GObject ╰── GInitiallyUnowned ╰── GtkWidget ╰── GtkContainer ╰── GtkBin ╰── GtkWindow ╰── GtkDialog ╰── GimpDialog
GtkWidget * gimp_dialog_new (const gchar *title
,const gchar *role
,GtkWidget *parent
,GtkDialogFlags flags
,GimpHelpFunc help_func
,const gchar *help_id
,...
);
Creates a new GimpDialog
widget.
This function simply packs the action_area arguments passed in "..."
into a va_list
variable and passes everything to gimp_dialog_new_valist()
.
For a description of the format of the va_list
describing the
action_area buttons see gtk_dialog_new_with_buttons()
.
[skip]
title |
The dialog's title which will be set with
|
|
role |
The dialog's |
|
parent |
The |
[nullable] |
flags |
The |
|
help_func |
The function which will be called if the user presses "F1". |
|
help_id |
The help_id which will be passed to |
|
... |
A |
GtkWidget * gimp_dialog_new_valist (const gchar *title
,const gchar *role
,GtkWidget *parent
,GtkDialogFlags flags
,GimpHelpFunc help_func
,const gchar *help_id
,va_list args
);
Creates a new GimpDialog
widget. If a GtkWindow is specified as
parent
then the dialog will be made transient for this window.
For a description of the format of the va_list
describing the
action_area buttons see gtk_dialog_new_with_buttons()
.
[skip]
title |
The dialog's title which will be set with
|
|
role |
The dialog's |
|
parent |
The |
|
flags |
The |
|
help_func |
The function which will be called if the user presses "F1". |
|
help_id |
The help_id which will be passed to |
|
args |
A |
GtkWidget * gimp_dialog_add_button (GimpDialog *dialog
,const gchar *button_text
,gint response_id
);
This function is essentially the same as gtk_dialog_add_button()
except it ensures there is only one help button and automatically
sets the RESPONSE_OK widget as the default response.
void gimp_dialog_add_buttons (GimpDialog *dialog
,...
);
This function is essentially the same as gtk_dialog_add_buttons()
except it calls gimp_dialog_add_button()
instead of gtk_dialog_add_button()
[skip]
void gimp_dialog_add_buttons_valist (GimpDialog *dialog
,va_list args
);
This function is essentially the same as gimp_dialog_add_buttons()
except it takes a va_list instead of '...'
[skip]
gint
gimp_dialog_run (GimpDialog *dialog
);
This function does exactly the same as gtk_dialog_run()
except it
does not make the dialog modal while the GMainLoop is running.
void
gimp_dialogs_show_help_button (gboolean show
);
This function is for internal use only.
[skip]
Since: 2.2
void gimp_dialog_set_alternative_button_order_from_array (GimpDialog *dialog
,gint n_buttons
,gint *order
);
Reorder dialog
's buttons if "gtk-alternative-button-order" setting
is set to TRUE. This is mostly a wrapper around the GTK function
gtk_dialog_set_alternative_button_order()
, except it won't output a
deprecation warning.
dialog |
The GimpDialog |
|
n_buttons |
The size of |
|
order |
array of buttons' response ids. |
[array length=n_buttons] |
Since: 3.0
“help-func”
property “help-func” gpointer
The help function to call when F1 is hit.
Owner: GimpDialog
Flags: Read / Write / Construct Only
Since: 2.2
“help-id”
property “help-id” char *
The help ID to pass to help-func.
Owner: GimpDialog
Flags: Read / Write / Construct
Default value: NULL
Since: 2.2