From 701e8ec07f1abca1a638a4d2d0f9d102e040a062 Mon Sep 17 00:00:00 2001 From: Alex Roitman Date: Sun, 16 Jul 2006 15:33:13 +0000 Subject: [PATCH] * src/DisplayTabs/_GalleryTab.py (GalleryTab.build_interface): Allow working with pygtk older than 2.8. svn: r7035 --- gramps2/ChangeLog | 2 ++ gramps2/src/DisplayTabs/_GalleryTab.py | 6 +++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gramps2/ChangeLog b/gramps2/ChangeLog index ddd859738..7a99ae0ec 100644 --- a/gramps2/ChangeLog +++ b/gramps2/ChangeLog @@ -1,4 +1,6 @@ 2006-07-16 Alex Roitman + * src/DisplayTabs/_GalleryTab.py (GalleryTab.build_interface): + Allow working with pygtk older than 2.8. * src/Filters/Rules/Person/_IsChildOfFilterMatch.py (IsChildOfFilterMatch.init_list): Convert to child_ref. * src/plugins/Checkpoint.py (Checkpoint.run_tool): Add busy cursor. diff --git a/gramps2/src/DisplayTabs/_GalleryTab.py b/gramps2/src/DisplayTabs/_GalleryTab.py index 5fc8834ff..74cedccd8 100644 --- a/gramps2/src/DisplayTabs/_GalleryTab.py +++ b/gramps2/src/DisplayTabs/_GalleryTab.py @@ -137,7 +137,11 @@ class GalleryTab(ButtonTab): self.iconlist.set_pixbuf_column(0) self.iconlist.set_text_column(1) self.iconlist.set_margin(12) - self.iconlist.set_reorderable(True) + try: + # This is only available for pygtk 2.8 + self.iconlist.set_reorderable(True) + except AttributeError: + pass self.iconlist.set_item_width(125) self.iconlist.set_spacing(24) self.iconlist.set_selection_mode(gtk.SELECTION_SINGLE)