Top | ![]() |
![]() |
![]() |
![]() |
GObject ╰── GInitiallyUnowned ╰── GtkWidget ╰── GtkContainer ╰── GtkBin ╰── GtkWindow ╰── GtkApplicationWindow ╰── DzlApplicationWindow ╰── IdeWorkspace ╰── IdeGreeterWorkspace
IdeGreeterWorkspace implements AtkImplementorIface, GtkBuildable, GActionGroup and GActionMap.
Use the IdeWorkspace APIs to add surfaces for user guides such as the git workflow or project creation wizard.
You can add buttons to the headerbar and use actions to change surfaces such as "win.surface::'surface-name'".
void ide_greeter_workspace_add_section (IdeGreeterWorkspace *self
,IdeGreeterSection *section
);
Adds the IdeGreeterSection to the display.
Since: 3.32
void ide_greeter_workspace_remove_section (IdeGreeterWorkspace *self
,IdeGreeterSection *section
);
Remvoes the IdeGreeterSection from the display. This should be a section
that was previously added with ide_greeter_workspace_add_section()
.
Plugins should clean up after themselves when they are unloaded, which may include calling this function.
Since: 3.32
void ide_greeter_workspace_add_button (IdeGreeterWorkspace *self
,GtkWidget *button
,gint priority
);
void
ide_greeter_workspace_begin (IdeGreeterWorkspace *self
);
This function will disable various actions and should be called before an IdeGreeterAddin begins doing work that cannot be undone except to cancel the operation.
Actions such as switching guides will be disabled during this process.
See ide_greeter_workspace_end()
to restore actions.
Since: 3.32
void
ide_greeter_workspace_end (IdeGreeterWorkspace *self
);
Restores actions after a call to ide_greeter_workspace_begin()
.
Since: 3.32
gboolean
ide_greeter_workspace_get_selection_mode
(IdeGreeterWorkspace *self
);
Gets if the greeter is in selection mode, which means that the workspace allows selecting projects for removal.
Since: 3.32
void ide_greeter_workspace_set_selection_mode (IdeGreeterWorkspace *self
,gboolean selection_mode
);
Sets the workspace in selection mode.
Since: 3.32
void ide_greeter_workspace_open_project (IdeGreeterWorkspace *self
,IdeProjectInfo *project_info
);
Opens the project described by project_info
.
This is useful by greeter workspace extensions that add new surfaces which may not have other means to activate a project.
Since: 3.32
“selection-mode”
property“selection-mode” gboolean
The "selection-mode" property indicates if the workspace allows selecting existing projects and removing them, including source files and cached data.
This is usually used by the checkmark button to toggle selections.
Flags: Read / Write
Default value: FALSE
Since: 3.32