This repository has been archived by the owner on Apr 4, 2021. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
also support MATE, the GNOME 2 fork from Linux Mint
- Loading branch information
Showing
7 changed files
with
69 additions
and
2 deletions.
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
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 @@ | ||
${scriptRoot}/${name}Applet.py usr/lib/mate-applets/${name}Applet.py |
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,28 @@ | ||
#!/usr/bin/python | ||
|
||
import sys | ||
import gtk | ||
import pygtk | ||
pygtk.require('2.0') | ||
import mateapplet | ||
from ${name}Applet import applet_factory | ||
|
||
if __name__ == '__main__': # testing for execution | ||
print('Starting factory') | ||
|
||
if len(sys.argv) > 1 and sys.argv[1] == '-d': # debugging | ||
mainWindow = gtk.Window() | ||
mainWindow.set_title('Applet window') | ||
mainWindow.connect('destroy', gtk.main_quit) | ||
applet = mateapplet.Applet() | ||
applet_factory(applet, None) | ||
applet.reparent(mainWindow) | ||
mainWindow.show_all() | ||
gtk.main() | ||
sys.exit() | ||
else: | ||
mateapplet.matecomponent_factory('OAFIID:MATE_${name}_Factory', | ||
mateapplet.Applet.__gtype__, | ||
'MATE_${name}', | ||
'0.1', | ||
applet_factory) |
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,28 @@ | ||
<?xml version="1.0"?> | ||
|
||
<oaf_info> | ||
<oaf_server iid="OAFIID:MATE_${name}_Factory" | ||
type="exe" | ||
location="/usr/lib/mate-applets/${name}-factoryMate.py"> | ||
<oaf_attribute name="repo_ids" type="stringv"> | ||
<item value="IDL:MateComponent/GenericFactory:1.0"/> | ||
<item value="IDL:MateComponent/Unknown:1.0"/> | ||
</oaf_attribute> | ||
<oaf_attribute name="name" type="string" value="${name}"/> | ||
<oaf_attribute name="description" type="string" value="${description}"/> | ||
</oaf_server> | ||
<oaf_server iid="OAFIID:MATE_${name}" | ||
type="factory" | ||
location="OAFIID:MATE_${name}_Factory"> | ||
|
||
<oaf_attribute name="repo_ids" type="stringv"> | ||
<item value="IDL:MATE/Vertigo/MatePanelAppletShell:1.0"/> | ||
<item value="IDL:MateComponent/Control:1.0"/> | ||
<item value="IDL:MateComponent/Unknown:1.0"/> | ||
</oaf_attribute> | ||
<oaf_attribute name="name" type="string" value="${name}"/> | ||
<oaf_attribute name="description" type="string" value="${description}"/> | ||
<oaf_attribute name="panel:category" type="string" value="${category}"/> | ||
<oaf_attribute name="panel:icon" type="string" value="${icon}"/> | ||
</oaf_server> | ||
</oaf_info> |