-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Experimental Budgie support. Fixes #61
- Loading branch information
1 parent
d5a3ce4
commit e5c6bdb
Showing
5 changed files
with
110 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
[Plugin] | ||
Module=appmenu-budgie.so | ||
Name=Global Menu | ||
Description=Show menus from windows | ||
Authors=Konstantin Pugin | ||
Copyright=Copyright © 2016 Konstantin Pugin | ||
Website=https://github.com/rilian-la-te/vala-panel-appmenu | ||
Icon=view-grid-symbolic |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
/* | ||
* vala-panel-appmenu | ||
* Copyright (C) 2015 Konstantin Pugin <[email protected]> | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU Lesser General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU Lesser General Public License | ||
* along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
using Gtk; | ||
using GLib; | ||
using Budgie; | ||
|
||
public class AppmenuApplet : Plugin, Peas.ExtensionBase | ||
{ | ||
public Applet get_panel_widget(string uid) | ||
{ | ||
return new GlobalMenuApplet(uid); | ||
} | ||
} | ||
public class GlobalMenuApplet: Applet | ||
{ | ||
public string uuid { public set ; public get; } | ||
public override bool supports_settings() | ||
{ | ||
return false; | ||
} | ||
public GlobalMenuApplet (string uid) | ||
{ | ||
Object(uuid: uuid); | ||
var layout = new Appmenu.AppMenuBar(); | ||
this.add(layout); | ||
show_all(); | ||
} | ||
} // End class | ||
|
||
[ModuleInit] | ||
public void peas_register_types(TypeModule module) | ||
{ | ||
// boilerplate - all modules need this | ||
var objmodule = module as Peas.ObjectModule; | ||
objmodule.register_extension_type(typeof(Budgie.Plugin), typeof(AppmenuApplet)); | ||
} |