Top |
|
start () |
|
setWorkspaceName () |
|
getWorkspaceName () |
|
hasDefaultWorkspaceName () |
|
moveWindowToNewWorkspace () |
|
getThemeStylesheet () |
|
setThemeStylesheet () |
|
loadTheme () |
|
notify () |
|
criticalNotify () |
|
warningNotify () |
|
notifyError () |
|
formatLogArgument () |
|
_log () |
|
isError () |
|
_LogTraceFormatted () |
|
_logTrace () |
|
_logWarning () |
|
_logError () |
|
_logInfo () |
|
logStackTrace () |
|
isWindowActorDisplayedOnWorkspace () |
|
getWindowActorsForWorkspace () |
|
pushModal () |
|
popModal () |
|
createLookingGlass () |
|
getRunDialog () |
|
activateWindow () |
|
initializeDeferredWork () |
|
queueDeferredWork () |
|
isInteresting () |
|
getTabList () |
PlacesManager.PlacesManager | placesManager | |
Overview.Overview | overview | |
Expo.Expo | expo | |
RunDialog.RunDialog | runDialog | |
LookingGlass.Melange | lookingGlass | |
WindowManager.WindowManager | wm | |
MessageTray.MessageTray | messageTray | |
NotificationDaemon.NotificationDaemon | notificationDaemon | |
WindowAttentionHandler.WindowAttentionHandler | windowAttentionHandler | |
ScreenRecorder.ScreenRecorder | screenRecorder | |
CinnamonDBus.Cinnamon | cinnamonDBusService | |
Screenshot.ScreenshotService | screenshotService | |
int | modalCount | |
array | modalActorFocusStack | |
Cinnamon.GenericContainer | uiGroup | |
Magnifier.Magnifier | magnifier | |
LocatePointer.LocatePointer | locatePointer | |
XdndHandler.XdndHandler | xdndHandler | |
StatusIconDispatcher.StatusIconDispatcher | statusIconDispatcher | |
VirtualKeyboard.Keyboard | virtualKeyboard | |
Layout.LayoutManager | layoutManager | |
Panel.PanelManager | panelManager | |
ThemeManager.ThemeManager | themeManager | |
SoundManager.SoundManager | soundManager | |
Settings.SettingsManager | settingsManager | |
BackgroundManager.BackgroundManager | backgroundManager | |
SlideshowManager.SlideshowManager | slideshowManager | |
KeybindingManager.KeybindingManager | keybindingManager | |
Systray.SystrayManager | systrayManager | |
OsdWindow.OsdWindow | osdWindow | |
Cinnamon.WindowTracker | tracker | |
array | workspace_names | |
DeskletManager.DeskletContainer | deskletContainer | |
boolean | software_rendering | |
boolean | animations_enabled | |
Clutter.Actor | popup_rendering_actor | |
boolean | xlet_startup_error |
The main file is responsible for launching Cinnamon as well as creating its components. The C part of cinnamon calls the start
() function, which then initializes all of cinnamon. Most components of Cinnamon can be accessed through main.
setWorkspaceName (int index
,string name
);
Sets the name of the workspace index
to name
boolean
hasDefaultWorkspaceName (int index
);
Whether the workspace uses the default name
moveWindowToNewWorkspace (Meta.Window metaWindow
,boolean switchToNewWorkspace
);
Moves the window to a new workspace.
If switchToNewWorkspace
is true, it will switch to the new workspace after moving the window
setThemeStylesheet (string cssStylesheet
);
Set the theme CSS file that Cinnamon will load
formatLogArgument (any arg
,int recursion
,int depth
);
Used by _log to handle each argument type and its formatting.
_log (string category
,string msg
);
Log a message into the LookingGlass error stream. This is primarily intended for use by the extension system as well as debugging.
_LogTraceFormatted (string stack
);
Prints the stack trace to the LookingGlass error stream in a predefined format
_logTrace (Error msg
);
Prints a stack trace of the given object.
If msg is an error, its stack-trace will be printed. Otherwise, a stack-trace of the call will be generated
If you want to print the message of an Error as well, use the other log functions instead.
_logWarning (Error/string msg
);
Logs the message to the LookingGlass error stream.
If msg is an error, its stack-trace will be printed.
_logError (string msg
,Error error
);
Logs the following (if present) to the LookingGlass error stream:
The message from the error object
The stack trace of the error object
The message msg
It can be called in the form of either _logError(msg), _logError(error) or _logError(msg, error).
_logInfo (Error/string msg
);
Logs the message to the LookingGlass error stream. If msg
is an Error object, its stack trace will also be printed
boolean isWindowActorDisplayedOnWorkspace (Meta.WindowActor win
,int workspaceIndex
);
Determines whether the window actor belongs to a specific workspace
array
getWindowActorsForWorkspace (int workspaceIndex
);
Gets a list of actors on a workspace
boolean pushModal (Clutter.Actor actor
,int timestamp
,Meta.ModalOptions options
);
Ensure we are in a mode where all keyboard and mouse input goes to the stage, and focus actor
. Multiple calls to this function act in a stacking fashion; the effect will be undone when an equal number of popModal() invocations have been made.
Next, record the current Clutter keyboard focus on a stack. If the modal stack returns to this actor, reset the focus to the actor which was focused at the time pushModal() was invoked.
timestamp
is optionally used to associate the call with a specific user initiated event. If not provided then the value of global.get_current_time() is assumed.
popModal (Clutter.Actor actor
,int timestamp
);
Reverse the effect of pushModal(). If this invocation is undoing the topmost invocation, then the focus will be restored to the previous focus at the time when pushModal() was invoked.
timestamp
is optionally used to associate the call with a specific user initiated event. If not provided then the value of global.get_current_time() is assumed.
LookingGlass.Melange
createLookingGlass ();
Obtains the looking glass object. Create if it does not exist
RunDialog.RunDialog
getRunDialog ();
Obtains the run dialog object. Create if it does not exist
activateWindow (Meta.Window window
,int time
,int workspaceNum
);
Activates window
, switching to workspaceNum first if provided, and switching out of the overview if it's currently active. If no workspace is provided, workspace-related behavior during activation will be handled in muffin.
string initializeDeferredWork (Clutter.Actor actor
,function callback
);
This function sets up a callback to be invoked when either the given actor is mapped, or after some period of time when the machine is idle. This is useful if your actor isn't always visible on the screen (for example, all actors in the overview), and you don't want to consume resources updating if the actor isn't actually going to be displaying to the user.
Note that queueDeferredWork is called by default immediately on initialization as well, under the assumption that new actors will need it.
queueDeferredWork (string workId
);
Ensure that the work identified by workId
will be run on map or timeout. You should call this function for example when data being displayed by the actor has changed.
boolean
isInteresting (Meta.Window metaWindow
);
Determines whether a window is "interesting", i.e. ones to be displayed in alt-tab, window list etc.
array getTabList (Meta.Workspace workspaceOpt
,Meta.Screen screenOpt
);
Return a list of the interesting windows on a workspace (by default, the active workspace). The list will include app-less dialogs.
“notificationDaemon”
property “notificationDaemon” NotificationDaemon.NotificationDaemon
The notification daemon
“windowAttentionHandler”
property “windowAttentionHandler” WindowAttentionHandler.WindowAttentionHandler
The window attention handle
“cinnamonDBusService”
property “cinnamonDBusService” CinnamonDBus.Cinnamon
The cinnamon dbus object
“screenshotService”
property “screenshotService” Screenshot.ScreenshotService
Implementation of gnome-shell's screenshot interface.
“uiGroup”
property “uiGroup” Cinnamon.GenericContainer
The group containing all Cinnamon and Muffin actors
“statusIconDispatcher”
property “statusIconDispatcher” StatusIconDispatcher.StatusIconDispatcher
The status icon dispatcher
“layoutManager”
property“layoutManager” Layout.LayoutManager
The layout manager.
All actors that are part of the Cinnamon UI ar handled by the layout manager, which will determine when to show and hide the actors etc.
“panelManager”
property“panelManager” Panel.PanelManager
The panel manager.
This is responsible for handling events relating to panels, eg. showing all panels.
“settingsManager”
property “settingsManager” Settings.SettingsManager
The manager of the xlet Settings API
“backgroundManager”
property “backgroundManager” BackgroundManager.BackgroundManager
The background manager.
This listens to changes in the GNOME background settings and mirrors them to the Cinnamon settings, since many applications have a "Set background" button that modifies the GNOME background settings.
“slideshowManager”
property “slideshowManager” SlideshowManager.SlideshowManager
The slideshow manager.
This is responsible for managing the background slideshow, since the background "slideshow" is created by cinnamon changing the active background gsetting every x minutes.
“keybindingManager”
property “keybindingManager” KeybindingManager.KeybindingManager
The keybinding manager
“osdWindow”
property “osdWindow” OsdWindow.OsdWindow
Osd window that pops up when you use media keys.
“deskletContainer”
property“deskletContainer” DeskletManager.DeskletContainer
The desklet container.
This is a container that contains all the desklets as childs. Its actor is put between global
.bottom_window_group and global
.uiGroup.
“animations_enabled”
property “animations_enabled” boolean
Whether any effects or animations should be used.
“popup_rendering_actor”
property “popup_rendering_actor” Clutter.Actor
The popup actor that is in the process of rendering