Class

IdeContext

Description

final class Ide.Context : Ide.Object
{
  /* No available fields */
}
No description available.

Hierarchy

hierarchy this IdeContext ancestor_0 IdeObject ancestor_0--this ancestor_1 GObject ancestor_1--ancestor_0

Ancestors

Constructors

ide_context_new

Creates a new IdeContext.

Instance methods

ide_context_build_file

Creates a new GFile for the path.

ide_context_build_filename

Creates a new path that starts from the working directory of the loaded project.

ide_context_cache_file

Like ide_context_cache_filename() but returns a GFile.

ide_context_cache_filename

Creates a new filename that will be located in the projects cache directory. This makes it convenient to remove files when a project is deleted as all cache files will share a unified parent directory.

ide_context_dup_project_id

Copies the project-id and returns it to the caller.

ide_context_dup_title
No description available.

ide_context_has_project

Checks to see if a project has been loaded in context.

ide_context_log
No description available.

ide_context_peek_child_typed

Looks for the first child matching type, and returns it. No reference is taken to the child, so you should avoid using this except as used by compatability functions.

ide_context_ref_action_muxer

Gets the action muxer for the context.

ide_context_ref_logs

Gets the logs for the context.

since: 44

ide_context_ref_project_settings

Gets an org.gnome.builder.project GSettings.

ide_context_ref_settings

Gets an IdeSettings for schema_id.

ide_context_ref_workdir

Gets the working-directory of the context and increments the reference count by one.

ide_context_register_settings

Registers settings that can be overriden by a project.

ide_context_set_project_id

Sets the project-id for the context.

ide_context_set_title

Sets the IdeContext:title property. This is used by various components to show the user the name of the project. This may include the omnibar and the window title.

ide_context_set_workdir

Sets the working directory for the project.

ide_context_unregister_settings
No description available.

Methods inherited from IdeObject (29)

Please see IdeObject for a full list of methods.

Methods inherited from GObject (43)

Please see GObject for a full list of methods.

Properties

Ide.Context:project-id

The “project-id” property is the identifier to use when creating files and folders for this project. It has a mutated form of either the directory or some other discoverable trait of the project.

Ide.Context:title

The “title” property is a descriptive name for the project.

Ide.Context:workdir

The “workdir” property is the best guess at the working directory for the context. This may be discovered using a common parent if multiple files are opened without a project.

Properties inherited from IdeObject (2)
Ide.Object:cancellable

The “cancellable” property is a GCancellable that can be used by operations that will be cancelled when the IdeObject::destroy signal is emitted on self.

Ide.Object:parent

The parent IdeObject, if any.

Signals

Signals inherited from IdeObject (1)
IdeObject::destroy

The “destroy” signal is emitted when the object should destroy itself and cleanup any state that is no longer necessary. This happens when the object has been removed from the because it was requested to be destroyed, or because a parent object is being destroyed.

Signals inherited from GObject (1)
GObject::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 IdeContextClass {
  IdeObjectClass parent_class;
  
}
No description available.
Class members
parent_class: IdeObjectClass
No description available.