[pygobject] Fix demo for override changes.
- From: Paolo Borelli <pborelli src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pygobject] Fix demo for override changes.
- Date: Wed, 8 Dec 2010 17:28:41 +0000 (UTC)
commit dbb16571803bf51f497768bf80944514f4290ee5
Author: Paolo Borelli <pborelli gnome org>
Date: Wed Dec 8 18:25:15 2010 +0100
Fix demo for override changes.
demos/gtk-demo/gtk-demo.py | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/demos/gtk-demo/gtk-demo.py b/demos/gtk-demo/gtk-demo.py
index 8a8c3e0..382d2c9 100755
--- a/demos/gtk-demo/gtk-demo.py
+++ b/demos/gtk-demo/gtk-demo.py
@@ -175,10 +175,11 @@ class GtkDemoApp(object):
Gtk.Window.set_default_icon_list(list)
def selection_cb(self, selection, model):
- (success, m, treeiter) = selection.get_selected()
- if not success:
+ sel = selection.get_selected()
+ if sel == ():
return
+ treeiter = sel[1]
demo = model.get_value(treeiter, 1)
title = demo.title
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]