Merge lp:~lacovima/poweradmin/quickly_trunk into lp:poweradmin

Proposed by Lance Andersen
Status: Approved
Approved by: Lance Andersen
Approved revision: 7
Proposed branch: lp:~lacovima/poweradmin/quickly_trunk
Merge into: lp:poweradmin
Diff against target: 276 lines (+127/-34)
7 files modified
data/ui/AboutPowerAdminDialog.ui (+1/-1)
data/ui/PowerAdminWindow.ui (+40/-16)
debian/changelog (+13/-0)
debian/control (+1/-0)
po/power-admin.pot (+5/-16)
power_admin/indicator.py (+66/-0)
setup.py (+1/-1)
To merge this branch: bzr merge lp:~lacovima/poweradmin/quickly_trunk
Reviewer Review Type Date Requested Status
Lance Andersen Approve
Review via email: mp+47120@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Lance Andersen (lacovima) :
review: Approve
4. By Lance Andersen

removed main window default content

5. By Lance Andersen

quickly saved

6. By Lance Andersen

commit before release

7. By Lance Andersen

quickly released: 11.01.1

Revision history for this message
Lance Andersen (lacovima) :
review: Approve

Unmerged revisions

7. By Lance Andersen

quickly released: 11.01.1

6. By Lance Andersen

commit before release

5. By Lance Andersen

quickly saved

4. By Lance Andersen

removed main window default content

3. By Lance Andersen

code move

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'data/ui/AboutPowerAdminDialog.ui'
--- data/ui/AboutPowerAdminDialog.ui 2011-01-21 21:05:24 +0000
+++ data/ui/AboutPowerAdminDialog.ui 2011-01-21 23:23:13 +0000
@@ -8,7 +8,7 @@
8 <property name="type_hint">normal</property>8 <property name="type_hint">normal</property>
9 <property name="has_separator">False</property>9 <property name="has_separator">False</property>
10 <property name="program_name">Power Admin</property>10 <property name="program_name">Power Admin</property>
11 <property name="version">11.01</property>11 <property name="version">11.01.1</property>
12 <property name="copyright">Copyright (C) 2011 Lance Andersen &lt;techlance@gmail.com&gt;</property>12 <property name="copyright">Copyright (C) 2011 Lance Andersen &lt;techlance@gmail.com&gt;</property>
13 <property name="website">https://launchpad.net/poweradmin</property>13 <property name="website">https://launchpad.net/poweradmin</property>
14 <property name="license"># Copyright (C) 2011 Lance Andersen &lt;techlance@gmail.com&gt;14 <property name="license"># Copyright (C) 2011 Lance Andersen &lt;techlance@gmail.com&gt;
1515
=== modified file 'data/ui/PowerAdminWindow.ui'
--- data/ui/PowerAdminWindow.ui 2011-01-21 21:05:24 +0000
+++ data/ui/PowerAdminWindow.ui 2011-01-21 23:23:13 +0000
@@ -1,9 +1,10 @@
1<?xml version="1.0"?>1<?xml version="1.0" encoding="UTF-8"?>
2<interface>2<interface>
3 <requires lib="gtk+" version="2.16"/>3 <requires lib="gtk+" version="2.16"/>
4 <!-- interface-requires power_admin_window 1.0 -->4 <!-- interface-requires power_admin_window 1.0 -->
5 <!-- interface-naming-policy project-wide -->5 <!-- interface-naming-policy project-wide -->
6 <!-- interface-local-resource-path ../media -->6 <!-- interface-local-resource-path ../media -->
7 <object class="GtkTreeStore" id="treestore1"/>
7 <object class="PowerAdminWindow" id="power_admin_window">8 <object class="PowerAdminWindow" id="power_admin_window">
8 <property name="title" translatable="yes">Power Admin</property>9 <property name="title" translatable="yes">Power Admin</property>
9 <property name="icon">../media/icon.png</property>10 <property name="icon">../media/icon.png</property>
@@ -11,7 +12,6 @@
11 <child>12 <child>
12 <object class="GtkVBox" id="vbox1">13 <object class="GtkVBox" id="vbox1">
13 <property name="visible">True</property>14 <property name="visible">True</property>
14 <property name="orientation">vertical</property>
15 <property name="spacing">5</property>15 <property name="spacing">5</property>
16 <child>16 <child>
17 <object class="GtkMenuBar" id="menubar1">17 <object class="GtkMenuBar" id="menubar1">
@@ -177,30 +177,54 @@
177 </packing>177 </packing>
178 </child>178 </child>
179 <child>179 <child>
180 <object class="GtkLabel" id="label1">180 <object class="GtkToolbar" id="toolbar1">
181 <property name="visible">True</property>181 <property name="visible">True</property>
182 <property name="xpad">30</property>
183 <property name="ypad">5</property>
184 <property name="label" translatable="yes">Your application has been created!
185
186To start changing this user interface, run 'quickly design', which will open Glade so you can edit the default windows and dialogs.
187
188To change the behavior and edit the python code, run 'quickly edit', which will bring up a text editor.</property>
189 <property name="wrap">True</property>
190 </object>182 </object>
191 <packing>183 <packing>
184 <property name="expand">False</property>
192 <property name="position">1</property>185 <property name="position">1</property>
193 </packing>186 </packing>
194 </child>187 </child>
195 <child>188 <child>
196 <object class="GtkImage" id="image1">189 <object class="GtkHPaned" id="hpaned1">
197 <property name="visible">True</property>190 <property name="visible">True</property>
198 <property name="xpad">5</property>191 <property name="can_focus">True</property>
199 <property name="ypad">5</property>192 <child>
200 <property name="pixbuf">../media/background.png</property>193 <object class="GtkScrolledWindow" id="scrolledwindow1">
194 <property name="visible">True</property>
195 <property name="can_focus">True</property>
196 <property name="hscrollbar_policy">automatic</property>
197 <property name="vscrollbar_policy">automatic</property>
198 <child>
199 <object class="GtkTreeView" id="treeview1">
200 <property name="visible">True</property>
201 <property name="can_focus">True</property>
202 <property name="model">treestore1</property>
203 </object>
204 </child>
205 </object>
206 <packing>
207 <property name="resize">False</property>
208 <property name="shrink">True</property>
209 </packing>
210 </child>
211 <child>
212 <object class="GtkScrolledWindow" id="scrolledwindow2">
213 <property name="visible">True</property>
214 <property name="can_focus">True</property>
215 <property name="hscrollbar_policy">automatic</property>
216 <property name="vscrollbar_policy">automatic</property>
217 <child>
218 <placeholder/>
219 </child>
220 </object>
221 <packing>
222 <property name="resize">True</property>
223 <property name="shrink">True</property>
224 </packing>
225 </child>
201 </object>226 </object>
202 <packing>227 <packing>
203 <property name="padding">15</property>
204 <property name="position">2</property>228 <property name="position">2</property>
205 </packing>229 </packing>
206 </child>230 </child>
207231
=== modified file 'debian/changelog'
--- debian/changelog 2011-01-21 21:05:30 +0000
+++ debian/changelog 2011-01-21 23:23:13 +0000
@@ -1,3 +1,16 @@
1power-admin (11.01.1) maverick; urgency=low
2
3 * removed main window default content
4 * code move
5
6 -- Lance Andersen <techlance@gmail.com> Fri, 21 Jan 2011 16:20:22 -0700
7
8power-admin (11.01ubuntu1) maverick; urgency=low
9
10 *
11
12 -- lance <lance@maverick> Fri, 21 Jan 2011 16:19:52 -0700
13
1power-admin (11.01) maverick; urgency=low14power-admin (11.01) maverick; urgency=low
215
3 * New release.16 * New release.
417
=== modified file 'debian/control'
--- debian/control 2011-01-21 21:05:30 +0000
+++ debian/control 2011-01-21 23:23:13 +0000
@@ -16,6 +16,7 @@
16Depends: ${misc:Depends},16Depends: ${misc:Depends},
17 ${python:Depends},17 ${python:Depends},
18 python-gtk2,18 python-gtk2,
19 python-appindicator,
19 python-launchpad-integration,20 python-launchpad-integration,
20 python-distutils-extra,21 python-distutils-extra,
21 desktopcouch22 desktopcouch
2223
=== modified file 'po/power-admin.pot'
--- po/power-admin.pot 2011-01-21 21:05:24 +0000
+++ po/power-admin.pot 2011-01-21 23:23:13 +0000
@@ -8,7 +8,7 @@
8msgstr ""8msgstr ""
9"Project-Id-Version: PACKAGE VERSION\n"9"Project-Id-Version: PACKAGE VERSION\n"
10"Report-Msgid-Bugs-To: \n"10"Report-Msgid-Bugs-To: \n"
11"POT-Creation-Date: 2011-01-21 13:40-0700\n"11"POT-Creation-Date: 2011-01-21 16:19-0700\n"
12"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"12"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
13"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"13"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14"Language-Team: LANGUAGE <LL@li.org>\n"14"Language-Team: LANGUAGE <LL@li.org>\n"
@@ -25,7 +25,7 @@
25msgid "PowerAdmin application"25msgid "PowerAdmin application"
26msgstr ""26msgstr ""
2727
28#: ../bin/power-admin.py:13928#: ../bin/power-admin.py:150
29msgid "Show debug messages"29msgid "Show debug messages"
30msgstr ""30msgstr ""
3131
@@ -34,28 +34,17 @@
34msgstr ""34msgstr ""
3535
36#: ../data/ui/PowerAdminWindow.ui.h:336#: ../data/ui/PowerAdminWindow.ui.h:3
37msgid ""
38"Your application has been created!\n"
39"\n"
40"To start changing this user interface, run 'quickly design', which will open "
41"Glade so you can edit the default windows and dialogs.\n"
42"\n"
43"To change the behavior and edit the python code, run 'quickly edit', which "
44"will bring up a text editor."
45msgstr ""
46
47#: ../data/ui/PowerAdminWindow.ui.h:8
48msgid "_Edit"37msgid "_Edit"
49msgstr ""38msgstr ""
5039
51#: ../data/ui/PowerAdminWindow.ui.h:940#: ../data/ui/PowerAdminWindow.ui.h:4
52msgid "_File"41msgid "_File"
53msgstr ""42msgstr ""
5443
55#: ../data/ui/PowerAdminWindow.ui.h:1044#: ../data/ui/PowerAdminWindow.ui.h:5
56msgid "_Help"45msgid "_Help"
57msgstr ""46msgstr ""
5847
59#: ../data/ui/PowerAdminWindow.ui.h:1148#: ../data/ui/PowerAdminWindow.ui.h:6
60msgid "_View"49msgid "_View"
61msgstr ""50msgstr ""
6251
=== added file 'power_admin/indicator.py'
--- power_admin/indicator.py 1970-01-01 00:00:00 +0000
+++ power_admin/indicator.py 2011-01-21 23:23:13 +0000
@@ -0,0 +1,66 @@
1#!/usr/bin/python
2# -*- Mode: Python; coding: utf-8; indent-tabs-mode: nil; tab-width: 4 -*-
3### BEGIN LICENSE
4# Copyright (C) 2011 Lance Andersen <techlance@gmail.com>
5# This program is free software: you can redistribute it and/or modify it
6# under the terms of the GNU General Public License version 3, as published
7# by the Free Software Foundation.
8#
9# This program is distributed in the hope that it will be useful, but
10# WITHOUT ANY WARRANTY; without even the implied warranties of
11# MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR
12# PURPOSE. See the GNU General Public License for more details.
13#
14# You should have received a copy of the GNU General Public License along
15# with this program. If not, see <http://www.gnu.org/licenses/>.
16### END LICENSE
17
18"""Code to add AppIndicator."""
19
20import gtk
21
22from power_admin.helpers import get_media_file
23
24import gettext
25from gettext import gettext as _
26gettext.textdomain('power-admin')
27
28import appindicator
29
30class Indicator:
31 def __init__(self,window):
32 self.indicator = appindicator.Indicator('power-admin','distributor-logo',appindicator.CATEGORY_APPLICATION_STATUS)
33 self.indicator.set_status(appindicator.STATUS_ACTIVE)
34
35 #Can use self.icon once appindicator python api supports custom icons.
36 #icon = get_media_file("logo.png")
37 #self.indicator.set_icon(icon)
38
39 #Uncomment and choose an icon for attention state.
40 #self.indicator.set_attention_icon("ICON-NAME")
41
42 self.menu = gtk.Menu()
43
44 # Add items to Menu and connect signals.
45 # Can access methods from bin/power_admin using window
46
47 #Adding preferences button
48 #window represents the main Window object of your app
49 self.preferences = gtk.MenuItem("Preferences")
50 self.preferences.connect("activate",window.preferences)
51 self.preferences.show()
52 self.menu.append(self.preferences)
53
54 self.quit = gtk.MenuItem("Quit")
55 self.quit.connect("activate",window.quit)
56 self.quit.show()
57 self.menu.append(self.quit)
58
59 # Add more items here
60
61 self.menu.show()
62 self.indicator.set_menu(self.menu)
63
64def new_application_indicator(window):
65 ind = Indicator(window)
66 return ind.indicator
067
=== modified file 'setup.py'
--- setup.py 2011-01-21 21:05:24 +0000
+++ setup.py 2011-01-21 23:23:13 +0000
@@ -88,7 +88,7 @@
8888
89DistUtilsExtra.auto.setup(89DistUtilsExtra.auto.setup(
90 name='power-admin',90 name='power-admin',
91 version='11.01',91 version='11.01.1',
92 license='GPL-3',92 license='GPL-3',
93 author='Lance Andersen',93 author='Lance Andersen',
94 author_email='techlance@gmail.com',94 author_email='techlance@gmail.com',

Subscribers

People subscribed via source and target branches

to all changes: