mirror of
https://github.com/elementary/gala.git
synced 2024-11-24 04:21:04 +03:00
Moved Gala into its own namespace
This commit is contained in:
parent
16d8338b91
commit
7ff1c56857
@ -1,4 +1,6 @@
|
||||
public class GalaPlugin : Meta.Plugin {
|
||||
namespace Gala {
|
||||
|
||||
public class Plugin : Meta.Plugin {
|
||||
|
||||
public WorkspaceSwitcher wswitcher;
|
||||
public WindowSwitcher winswitcher;
|
||||
@ -67,12 +69,15 @@ public class GalaPlugin : Meta.Plugin {
|
||||
wswitcher.workspace = i;
|
||||
}
|
||||
}
|
||||
|
||||
public override void minimize (Meta.WindowActor actor) {
|
||||
this.minimize_completed (actor);
|
||||
}
|
||||
|
||||
public override void maximize (Meta.WindowActor actor, int x, int y, int w, int h) {
|
||||
this.maximize_completed (actor);
|
||||
}
|
||||
|
||||
public override void map (Meta.WindowActor actor) {
|
||||
actor.show ();
|
||||
switch (actor.meta_window.window_type) {
|
||||
@ -226,4 +231,6 @@ public class GalaPlugin : Meta.Plugin {
|
||||
return {"Gala", "0.1", "Tom Beckmann", "GPLv3", "A nice window manager"};
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
@ -24,7 +24,7 @@ int main (string [] args) {
|
||||
Meta.exit(Meta.ExitCode.ERROR);
|
||||
}
|
||||
|
||||
Meta.Plugin.type_register (new GalaPlugin ().get_type ());
|
||||
Meta.Plugin.type_register (new Gala.Plugin ().get_type ());
|
||||
|
||||
/**
|
||||
* Prevent Meta.init () from causing gtk to load gail and at-bridge
|
||||
|
Loading…
Reference in New Issue
Block a user