[postr] Fixed license combobox filling
- From: GermÃn Poà CaamaÃo <gpoo src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [postr] Fixed license combobox filling
- Date: Thu, 4 Oct 2012 07:35:15 +0000 (UTC)
commit a7369dbb2d8ab5474f21c13c2e364511aa111a25
Author: GermÃn Poo-CaamaÃo <gpoo gnome org>
Date: Wed Oct 3 22:31:09 2012 -0700
Fixed license combobox filling
There were two rows being appened per license. Also, the
default value is override once the combobox gets active in
the main program.
Signed-off-by: GermÃn Poo-CaamaÃo <gpoo gnome org>
src/LicenseCombo.py | 7 -------
1 files changed, 0 insertions(+), 7 deletions(-)
---
diff --git a/src/LicenseCombo.py b/src/LicenseCombo.py
index 91aa7c9..a185eb4 100644
--- a/src/LicenseCombo.py
+++ b/src/LicenseCombo.py
@@ -43,15 +43,8 @@ class LicenseCombo(Gtk.ComboBox):
"""Callback for the photos.licenses.getInfo call"""
for license in rsp.findall("licenses/license"):
license_id = int(license.get("id"))
- it = self.model.append()
self.model.append([license.get("name"), license_id])
- # Set default license to All Rights Reserved.
- # I haven't found a way to get the default license
- # from flickr by the API.
- if license_id == 0:
- self.set_active_iter(it)
-
def update(self):
self.flickr.photos_licenses_getInfo().addCallbacks(self.__got_licenses,
self.twisted_error)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]