run_with_icon


Description:

[ CCode ( cname = "xapp_icon_chooser_dialog_run_with_icon" ) ]
public int run_with_icon (string icon)

Like xapp_icon_chooser_dialog_run but selects the icon specified by icon.

This can be either an icon name or a path. Passing an icon string or path that doesn't exist is accepted, but it may show multiple results, or none at all. This behavior is useful if, for example, you wish to have the user select an image file from a particular directory.

If the property allow_paths is FALSE, setting a path will yield no results when the dialog is opened.

xapp_icon_chooser_dialog_run (), run_with_icon, and xapp_icon_chooser_dialog_run_with_category () may all be called multiple times. This is useful for applications which use this dialog multiple times, as it may improve performance for subsequent calls.

Parameters:

this

a IconChooserDialog

icon

a string representing the icon that should be selected

Returns:

GTK_RESPONSE_OK if the user selected an icon, or GTK_RESPONSE_CANCEL otherwise