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

Proposed by Mario Guerriero
Status: Merged
Merged at revision: 110
Proposed branch: lp:~mefrio-g/activity-log-manager/switchboard-plug
Merge into: lp:~activity-log-manager/activity-log-manager/vala
Diff against target: 81 lines (+60/-0)
3 files modified
README (+11/-0)
data/alm.plug (+5/-0)
src/alm-plug.vala (+44/-0)
To merge this branch: bzr merge lp:~mefrio-g/activity-log-manager/switchboard-plug
Reviewer Review Type Date Requested Status
Manish Sinha (मनीष सिन्हा) Approve
Review via email: mp+99189@code.launchpad.net

Description of the change

Added a Switchboard plug interface

To post a comment you must log in.
Revision history for this message
Manish Sinha (मनीष सिन्हा) (manishsinha) wrote :

Looks good. Made some necessary changes

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'README'
2--- README 2012-02-07 14:16:08 +0000
3+++ README 2012-03-24 22:58:18 +0000
4@@ -18,6 +18,17 @@
5 Upstream gnome-control-center does not allow embedding third-party
6 entries in the control center.
7
8+Switchboard plug
9+----------------
10+Hard Dependencies:
11+ zeitgeist-1.0
12+ gee-1.0
13+ gtk-3.0
14+ gio-unix-2.0
15+ pantheon
16+
17+The file data/alm.plug should be putted in lib/plugs/alm with the
18+generated exacutable which should be named "alm"
19
20 Report bugs
21 ---------------
22
23=== added file 'data/alm.plug'
24--- data/alm.plug 1970-01-01 00:00:00 +0000
25+++ data/alm.plug 2012-03-24 22:58:18 +0000
26@@ -0,0 +1,5 @@
27+[alm.plug]
28+exec=alm
29+icon=activity-log-manager
30+title=Activity Log Manager
31+category=personal
32
33=== added file 'src/alm-plug.vala'
34--- src/alm-plug.vala 1970-01-01 00:00:00 +0000
35+++ src/alm-plug.vala 2012-03-24 22:58:18 +0000
36@@ -0,0 +1,44 @@
37+/***
38+ BEGIN LICENSE
39+
40+ Copyright (C) 2011 Mario Guerriero <mefrio.g@gmail.com>
41+ This program is free software: you can redistribute it and/or modify it
42+ under the terms of the GNU Lesser General Public License version 3, as published
43+ by the Free Software Foundation.
44+
45+ This program is distributed in the hope that it will be useful, but
46+ WITHOUT ANY WARRANTY; without even the implied warranties of
47+ MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR
48+ PURPOSE. See the GNU General Public License for more details.
49+
50+ You should have received a copy of the GNU General Public License along
51+ with this program. If not, see <http://www.gnu.org/licenses/>
52+
53+ END LICENSE
54+***/
55+
56+namespace Alm {
57+ class AlmPlug : Pantheon.Switchboard.Plug
58+ {
59+
60+ public AlmPlug ()
61+ {
62+ var box = new ActivityLogManager ();
63+ add (box);
64+ }
65+
66+ }
67+}
68+
69+public static int main (string[] args)
70+{
71+ Gtk.init (ref args);
72+
73+ var plug = new Alm.AlmPlug ();
74+ plug.register ("Activity log manager");
75+ plug.show_all ();
76+
77+ Gtk.main ();
78+
79+ return 0;
80+}
81\ No newline at end of file

Subscribers

People subscribed via source and target branches