← Back to team overview

zeitgeist team mailing list archive

[Merge] lp:~mefrio-g/activity-log-manager/switchboard-plug into lp:activity-log-manager

 

Mario Guerriero has proposed merging lp:~mefrio-g/activity-log-manager/switchboard-plug into lp:activity-log-manager.

Requested reviews:
  Activity Log Manager (activity-log-manager)

For more details, see:
https://code.launchpad.net/~mefrio-g/activity-log-manager/switchboard-plug/+merge/99189

Added a Switchboard plug interface
-- 
https://code.launchpad.net/~mefrio-g/activity-log-manager/switchboard-plug/+merge/99189
Your team Activity Log Manager is requested to review the proposed merge of lp:~mefrio-g/activity-log-manager/switchboard-plug into lp:activity-log-manager.
=== modified file 'README'
--- README	2012-02-07 14:16:08 +0000
+++ README	2012-03-24 22:56:20 +0000
@@ -18,6 +18,17 @@
 Upstream gnome-control-center does not allow embedding third-party 
 entries in the control center.
 
+Switchboard plug
+----------------
+Hard Dependencies:
+    zeitgeist-1.0
+    gee-1.0
+    gtk-3.0
+    gio-unix-2.0
+    pantheon
+
+The file data/alm.plug should be putted in lib/plugs/alm with the 
+generated exacutable which should be named "alm"
 
 Report bugs
 ---------------

=== added file 'data/alm.plug'
--- data/alm.plug	1970-01-01 00:00:00 +0000
+++ data/alm.plug	2012-03-24 22:56:20 +0000
@@ -0,0 +1,5 @@
+[alm.plug]
+exec=alm
+icon=activity-log-manager
+title=Activity Log Manager
+category=personal

=== added file 'src/alm-plug.vala'
--- src/alm-plug.vala	1970-01-01 00:00:00 +0000
+++ src/alm-plug.vala	2012-03-24 22:56:20 +0000
@@ -0,0 +1,44 @@
+/***
+  BEGIN LICENSE
+	
+  Copyright (C) 2011 Mario Guerriero <mefrio.g@xxxxxxxxx>	
+  This program is free software: you can redistribute it and/or modify it	
+  under the terms of the GNU Lesser General Public License version 3, as published	
+  by the Free Software Foundation.
+	
+  This program is distributed in the hope that it will be useful, but	
+  WITHOUT ANY WARRANTY; without even the implied warranties of	
+  MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR	
+  PURPOSE.  See the GNU General Public License for more details.
+	
+  You should have received a copy of the GNU General Public License along	
+  with this program.  If not, see <http://www.gnu.org/licenses/>
+  
+  END LICENSE	
+***/ 
+
+namespace Alm {
+    class AlmPlug : Pantheon.Switchboard.Plug 
+    {
+        
+        public AlmPlug () 
+        {
+            var box = new ActivityLogManager ();
+            add (box);
+        }
+      
+    }
+}
+
+public static int main (string[] args) 
+{
+    Gtk.init (ref args);
+	
+    var plug = new Alm.AlmPlug ();
+    plug.register ("Activity log manager");
+    plug.show_all (); 
+	
+    Gtk.main ();
+	
+    return 0;
+}
\ No newline at end of file


Follow ups