Top |
GtkWidget * | gimp_path_editor_new () |
gchar * | gimp_path_editor_get_path () |
void | gimp_path_editor_set_path () |
gchar * | gimp_path_editor_get_writable_path () |
void | gimp_path_editor_set_writable_path () |
gboolean | gimp_path_editor_get_dir_writable () |
void | gimp_path_editor_set_dir_writable () |
GObject ╰── GInitiallyUnowned ╰── GtkObject ╰── GtkWidget ╰── GtkContainer ╰── GtkBox ╰── GimpPathEditor
GimpPathEditor implements AtkImplementorIface, GtkBuildable and GtkOrientable.
This widget is used to edit file search paths.
It shows a list of all directories which are in the search path. You can click a directory to select it. The widget provides a GimpFileEntry to change the currently selected directory.
There are buttons to add or delete directories as well as "up" and "down" buttons to change the order in which the directories will be searched.
Whenever the user adds, deletes, changes or reorders a directory of the search path, the "path_changed" signal will be emitted.
GtkWidget * gimp_path_editor_new (const gchar *title
,const gchar *path
);
Creates a new GimpPathEditor widget.
The elements of the initial search path must be separated with the G_SEARCHPATH_SEPARATOR character.
gchar *
gimp_path_editor_get_path (GimpPathEditor *editor
);
The elements of the returned search path string are separated with the G_SEARCHPATH_SEPARATOR character.
Note that you have to g_free()
the returned string.
void gimp_path_editor_set_path (GimpPathEditor *editor
,const gchar *path
);
The elements of the initial search path must be separated with the G_SEARCHPATH_SEPARATOR character.
gchar *
gimp_path_editor_get_writable_path (GimpPathEditor *editor
);
void gimp_path_editor_set_writable_path (GimpPathEditor *editor
,const gchar *path
);
gboolean gimp_path_editor_get_dir_writable (GimpPathEditor *editor
,const gchar *directory
);
void gimp_path_editor_set_dir_writable (GimpPathEditor *editor
,const gchar *directory
,gboolean writable
);
“path-changed”
signalvoid user_function (GimpPathEditor *gimppatheditor, gpointer user_data)
This signal is emitted whenever the user adds, deletes, modifies or reorders an element of the search path.
Flags: Run First
“writable-changed”
signalvoid user_function (GimpPathEditor *gimppatheditor, gpointer user_data)
This signal is emitted whenever the "writable" column of a directory
is changed, either by the user clicking on it or by calling
gimp_path_editor_set_dir_writable()
.
Flags: Run First