[gyrus/gyrus-python] Fixed bug #600424
- From: Alejandro Valdes Jimenez <avaldes src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gyrus/gyrus-python] Fixed bug #600424
- Date: Thu, 12 Nov 2009 19:20:29 +0000 (UTC)
commit df95507073f2615fe620315d567832552b6a30f4
Author: Alejandro Valdes Jimenez <avaldes gnome org>
Date: Thu Nov 12 16:20:10 2009 -0300
Fixed bug #600424
ChangeLog | 8 ++++++++
src/GyrusMailboxesStore.py | 6 ++----
src/GyrusMailboxesTreeView.py | 6 +++++-
3 files changed, 15 insertions(+), 5 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index cddedd2..77b99b0 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,13 @@
2009-11-01 Francisco Rojas <frojas alumnos utalca cl>
+ * src/GyrusMailboxesTreeview.py: (get_list_of_mailbox)
+ Change in the icon of mailbox treeview
+ * src/GyrusMailboxesStore.py: (add_mailbox)
+ Receives as parameters the icon image
+ Fixes bug #600424
+
+2009-11-01 Francisco Rojas <frojas alumnos utalca cl>
+
* src/GyrusAclTreeView.py: (update_of_mailbox)
use of Regular Expression for data extraction instead of split
Fixes bug #600420
diff --git a/src/GyrusMailboxesStore.py b/src/GyrusMailboxesStore.py
index 54d2c2e..a897a3b 100644
--- a/src/GyrusMailboxesStore.py
+++ b/src/GyrusMailboxesStore.py
@@ -50,14 +50,12 @@ class GyrusMailboxesStore(gtk.TreeStore):
gobject.TYPE_INT,
gobject.TYPE_INT)
- def add_mailbox(self , name_mailbox, free, quota):
-
- icon = os.path.join (config.ARTDIR, "gyrus.png")
+ def add_mailbox(self, icon, name_mailbox, free, quota):
iter = self.append(None)
self.set (iter, COLUMN_MAILBOX_ICON,
- gtk.gdk.pixbuf_new_from_file_at_size (icon, 15, 15),
+ icon,
COLUMN_MAILBOX, name_mailbox,
COLUMN_QUOTA_ASSIGNED, quota,
COLUMN_FREE, free)
diff --git a/src/GyrusMailboxesTreeView.py b/src/GyrusMailboxesTreeView.py
index 4d12482..6fa9d8e 100644
--- a/src/GyrusMailboxesTreeView.py
+++ b/src/GyrusMailboxesTreeView.py
@@ -149,6 +149,10 @@ class GyrusMailboxesTreeView (gtk.TreeView):
num_users = 0
+ icon = self.render_icon(stock_id=gtk.STOCK_DIRECTORY,
+ size=gtk.ICON_SIZE_MENU,
+ detail=None)
+
#THIS IST WRONG, because if the query throws a WARNING we omit it
if not data[0] == None:
@@ -169,7 +173,7 @@ class GyrusMailboxesTreeView (gtk.TreeView):
res,msg,free,quota = self.get_quota_of_mailbox(name_mailbox)
- model.add_mailbox(name_mailbox,free,quota)
+ model.add_mailbox(icon, name_mailbox, free, quota)
num_users = num_users + 1
except:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]