Class
PanelSaveDelegate
Constructors
panel_save_delegate_new
Create a new PanelSaveDelegate
.
Instance methods
panel_save_delegate_get_icon
Gets the GIcon
for the save delegate, or NULL
if unset.
panel_save_delegate_get_icon_name
Gets the icon name for the save delegate.
panel_save_delegate_get_progress
panel_save_delegate_get_subtitle
Gets the subtitle for the save delegate.
panel_save_delegate_get_title
Gets the title for the save delegate.
panel_save_delegate_save_async
panel_save_delegate_save_finish
panel_save_delegate_set_icon
Sets the GIcon
for the save delegate. Pass NULL
to unset.
panel_save_delegate_set_icon_name
Sets the icon name for the save delegate. Pass NULL
to unset.
panel_save_delegate_set_progress
panel_save_delegate_set_subtitle
Sets the subtitle for the save delegate. Pass NULL
to unset.
panel_save_delegate_set_title
Sets the title for the save delegate. Pass NULL
to unset.
Properties
Panel.SaveDelegate:icon
The “icon” property contains a GIcon
that describes the save
operation. Generally, this should be the symbolic icon of the
document class you are saving.
Panel.SaveDelegate:icon-name
The “icon-name” property contains the name of an icon to use when showing information about the save operation in UI such as a save dialog.
Panel.SaveDelegate:progress
The “progress” property contains progress between 0.0 and 1.0 and should be updated by the delegate implementation as saving progresses.
Panel.SaveDelegate:subtitle
The “subtitle” property contains additional information that may not make sense to put in the title. This might include the directory that the file will be saved within.
Panel.SaveDelegate:title
The “title” property contains the title of the document being saved.
Generally, this should be the base name of the document such as
file.txt
.
Signals
Panel.SaveDelegate::save
This signal can be used when subclassing PanelSaveDelegate
is not
possible or cumbersome. The default implementation of
PanelSaveDelegateClass
.save_async() will emit this signal to allow
the consumer to implement asynchronous save in a flexible manner.
Signals inherited from GObject (1)
GObject.Object::notify
The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.
Class structure
struct PanelSaveDelegateClass {
GObjectClass parent_class;
void (* save_async) (
PanelSaveDelegate* self,
GCancellable* cancellable,
GAsyncReadyCallback callback,
gpointer user_data
);
gboolean (* save_finish) (
PanelSaveDelegate* self,
GAsyncResult* result,
GError** error
);
gboolean (* save) (
PanelSaveDelegate* self,
GTask* task
);
}
Class members
parent_class |
|
No description available. | |
save_async |
|
No description available. | |
save_finish |
|
No description available. | |
save |
|
No description available. |