GimpUi.PathEditor¶
- Subclasses:
 None
Methods¶
- Inherited:
 Gtk.Box (14), Gtk.Container (35), Gtk.Widget (278), GObject.Object (37), Gtk.Buildable (10), Gtk.Orientable (2)
- Structs:
 Gtk.ContainerClass (5), Gtk.WidgetClass (12), GObject.ObjectClass (5)
class  | 
  | 
  | 
|
  | 
|
  | 
|
  | 
|
  | 
Virtual Methods¶
Properties¶
- Inherited:
 Gtk.Box (3), Gtk.Container (3), Gtk.Widget (39), Gtk.Orientable (1)
Child Properties¶
- Inherited:
 
Style Properties¶
- Inherited:
 
Signals¶
- Inherited:
 
Name  | 
Short Description  | 
|---|---|
This signal is emitted whenever the user adds, deletes, modifies or reorders an element of the search path.  | 
|
This signal is emitted whenever the “writable” column of a directory is changed, either by the user clicking on it or by calling   | 
Fields¶
- Inherited:
 
Class Details¶
- class GimpUi.PathEditor(*args, **kwargs)¶
 - Bases:
 - Abstract:
 No
- Structure:
 
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
GimpUi.FileEntryto 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.
- classmethod new(title, path)¶
 - Parameters:
 title (
str) – The title of theGtk.FileChooserdialog which can be popped up.
- Returns:
 A pointer to the new
GimpUi.PathEditorwidget.- Return type:
 
Creates a new
GimpUi.PathEditorwidget.The elements of the initial search path must be separated with the
GLib.SEARCHPATH_SEPARATORcharacter.
- get_path()¶
 - Returns:
 The search path the user has selected in the path editor.
- Return type:
 
The elements of the returned search path string are separated with the
GLib.SEARCHPATH_SEPARATORcharacter.Note that you have to
GLib.free() the returned string.
- set_path(path)¶
 - Parameters:
 path (
str) – The new path to set.
The elements of the initial search path must be separated with the
GLib.SEARCHPATH_SEPARATORcharacter.
Signal Details¶
- GimpUi.PathEditor.signals.path_changed(path_editor)¶
 - Signal Name:
 path-changed- Flags:
 - Parameters:
 path_editor (
GimpUi.PathEditor) – The object which received the signal
This signal is emitted whenever the user adds, deletes, modifies or reorders an element of the search path.
- GimpUi.PathEditor.signals.writable_changed(path_editor)¶
 - Signal Name:
 writable-changed- Flags:
 - Parameters:
 path_editor (
GimpUi.PathEditor) – The object which received the signal
This signal is emitted whenever the “writable” column of a directory is changed, either by the user clicking on it or by calling
GimpUi.PathEditor.set_dir_writable().