Moved Gala into its own namespace

This commit is contained in:
Garden Gnome 2012-05-26 03:53:29 +01:00
parent 16d8338b91
commit 7ff1c56857
2 changed files with 210 additions and 203 deletions

View File

@ -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"};
}
}
}

View File

@ -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