GimpProcedureDialog

GimpProcedureDialog

Functions

Properties

GimpProcedureConfig * config Read / Write / Construct
GimpProcedure * procedure Read / Write / Construct Only

Object Hierarchy

    GObject
    ╰── GInitiallyUnowned
        ╰── GtkWidget
            ╰── GtkContainer
                ╰── GtkBin
                    ╰── GtkWindow
                        ╰── GtkDialog
                            ╰── GimpDialog
                                ╰── GimpProcedureDialog

Description

Functions

gimp_procedure_dialog_new ()

GtkWidget *
gimp_procedure_dialog_new (GimpProcedure *procedure,
                           GimpProcedureConfig *config,
                           const gchar *title);

Creates a new dialog for procedure using widgets generated from properties of config . A NULL title will only be accepted if a menu label was set with gimp_procedure_set_menu_label() (this menu label will then be used as dialog title instead). If neither an explicit label nor a procedure menu label was set, the call will fail.

As for all GtkWindow, the returned GimpProcedureDialog object is owned by GTK and its initial reference is stored in an internal list of top-level windows. To delete the dialog, call gtk_widget_destroy().

Parameters

procedure

the associated GimpProcedure.

 

config

a GimpProcedureConfig from which properties will be turned into widgets.

 

title

a dialog title.

[nullable]

Returns

the newly created GimpProcedureDialog.

[transfer none]


gimp_procedure_dialog_run ()

gboolean
gimp_procedure_dialog_run (GimpProcedureDialog *dialog);

Show dialog and only returns when the user finished interacting with it (either validating choices or canceling).

Parameters

dialog

the GimpProcedureDialog.

 

Returns

TRUE if the dialog was validated, FALSE otherwise.

Property Details

The “config” property

  “config”                   GimpProcedureConfig *

The GimpProcedureConfig this dialog is editing.

Owner: GimpProcedureDialog

Flags: Read / Write / Construct


The “procedure” property

  “procedure”                GimpProcedure *

The GimpProcedure this dialog is used with.

Owner: GimpProcedureDialog

Flags: Read / Write / Construct Only