From 261b162f4512609fb8fabd23f44e6ddc0536d43b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20=27Necoro=27=20Neumann?= Date: Thu, 20 May 2010 13:01:27 +0200 Subject: More declarative handling of the database types --- portato/gui/windows/preference.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'portato/gui') diff --git a/portato/gui/windows/preference.py b/portato/gui/windows/preference.py index 2b6974e..dd2a892 100644 --- a/portato/gui/windows/preference.py +++ b/portato/gui/windows/preference.py @@ -168,14 +168,12 @@ class PreferenceWindow (AbstractDialog): self.databaseCombo = self.tree.get_widget("databaseCombo") model = gtk.ListStore(str, str, str) - ctr = 0 active = 0 - for k, name, desc in db.types: - if k == dbtype: + for ctr, (key, t) in enumerate(db.types.iteritems()): + if key == dbtype: active = ctr - model.append([name, desc, k]) - ctr += 1 + model.append([t.name, t.descr, key]) self.databaseCombo.set_model(model) self.databaseCombo.set_active(active) -- cgit v1.2.3 From 24ba9cba2c307a092c95f68c2531cd3e0ead7b6a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20=27Necoro=27=20Neumann?= Date: Sat, 22 May 2010 20:27:33 +0200 Subject: Fix the link buttons --- portato/gui/windows/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'portato/gui') diff --git a/portato/gui/windows/main.py b/portato/gui/windows/main.py index de62f45..7cf20e1 100644 --- a/portato/gui/windows/main.py +++ b/portato/gui/windows/main.py @@ -175,7 +175,7 @@ class PackageTable: ftexts.append(t) for t in ftexts: - link = gtk.LinkButton(t) + link = gtk.LinkButton(uri = t, label = t) link.set_alignment(0.0, 0.5) link.set_border_width(0) self.linkBox.add(link) -- cgit v1.2.3 From fd0724455c9df3a2e77e15bdc81011875051224f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20=27Necoro=27=20Neumann?= Date: Sat, 22 May 2010 20:31:44 +0200 Subject: Update gtk-version in glade files --- portato/gui/templates/AboutWindow.ui | 2 +- portato/gui/templates/MailInfoWindow.ui | 2 +- portato/gui/templates/MainWindow.ui | 2 +- portato/gui/templates/PkgListWindow.ui | 2 +- portato/gui/templates/PluginWindow.ui | 2 +- portato/gui/templates/PreferenceWindow.ui | 2 +- portato/gui/templates/SearchWindow.ui | 2 +- portato/gui/templates/SplashScreen.ui | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) (limited to 'portato/gui') diff --git a/portato/gui/templates/AboutWindow.ui b/portato/gui/templates/AboutWindow.ui index 893958a..79c8522 100644 --- a/portato/gui/templates/AboutWindow.ui +++ b/portato/gui/templates/AboutWindow.ui @@ -1,6 +1,6 @@ - + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK diff --git a/portato/gui/templates/MailInfoWindow.ui b/portato/gui/templates/MailInfoWindow.ui index e3cdd1f..fec34ed 100644 --- a/portato/gui/templates/MailInfoWindow.ui +++ b/portato/gui/templates/MailInfoWindow.ui @@ -1,6 +1,6 @@ - + Send Bug Mail ... diff --git a/portato/gui/templates/MainWindow.ui b/portato/gui/templates/MainWindow.ui index 2eaaae1..63cf225 100644 --- a/portato/gui/templates/MainWindow.ui +++ b/portato/gui/templates/MainWindow.ui @@ -1,6 +1,6 @@ - + 2 diff --git a/portato/gui/templates/PkgListWindow.ui b/portato/gui/templates/PkgListWindow.ui index fdcdb23..80ba5c7 100644 --- a/portato/gui/templates/PkgListWindow.ui +++ b/portato/gui/templates/PkgListWindow.ui @@ -1,6 +1,6 @@ - + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK diff --git a/portato/gui/templates/PluginWindow.ui b/portato/gui/templates/PluginWindow.ui index 42a3156..fed260c 100644 --- a/portato/gui/templates/PluginWindow.ui +++ b/portato/gui/templates/PluginWindow.ui @@ -1,6 +1,6 @@ - + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK diff --git a/portato/gui/templates/PreferenceWindow.ui b/portato/gui/templates/PreferenceWindow.ui index 0f0a16f..1e8bf7d 100644 --- a/portato/gui/templates/PreferenceWindow.ui +++ b/portato/gui/templates/PreferenceWindow.ui @@ -1,6 +1,6 @@ - + 300 diff --git a/portato/gui/templates/SearchWindow.ui b/portato/gui/templates/SearchWindow.ui index f62d259..fa17396 100644 --- a/portato/gui/templates/SearchWindow.ui +++ b/portato/gui/templates/SearchWindow.ui @@ -1,6 +1,6 @@ - + 350 diff --git a/portato/gui/templates/SplashScreen.ui b/portato/gui/templates/SplashScreen.ui index c136062..2cc5152 100644 --- a/portato/gui/templates/SplashScreen.ui +++ b/portato/gui/templates/SplashScreen.ui @@ -1,6 +1,6 @@ - + 300 -- cgit v1.2.3