projects
/
jamaendo
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
LOL, helldon. though there's something bad going on with gthreads.
[jamaendo]
/
jamaui
/
listbox.py
diff --git
a/jamaui/listbox.py
b/jamaui/listbox.py
index
bc34d09
..
c74f1d8
100644
(file)
--- a/
jamaui/listbox.py
+++ b/
jamaui/listbox.py
@@
-2,8
+2,10
@@
import gtk
try:
import hildon
import gtk
try:
import hildon
+ _using_helldon = False
except:
import helldon as hildon
except:
import helldon as hildon
+ _using_helldon = True
class ListBox(gtk.TreeView):
def __init__(self):
class ListBox(gtk.TreeView):
def __init__(self):
@@
-42,7
+44,7
@@
class ListBox(gtk.TreeView):
class ListDialog(gtk.Dialog):
def __init__(self, title, parent=None):
class ListDialog(gtk.Dialog):
def __init__(self, title, parent=None):
- gtk.Dialog.__init__(self, title, parent)
+ gtk.Dialog.__init__(self, title, parent if not _using_helldon else None)
self.listbox = ListBox()
panarea = hildon.PannableArea()
panarea.add(self.listbox)
self.listbox = ListBox()
panarea = hildon.PannableArea()
panarea.add(self.listbox)
@@
-59,7
+61,7
@@
class ListDialog(gtk.Dialog):
class ButtonListDialog(gtk.Dialog):
def __init__(self, title, parent=None):
class ButtonListDialog(gtk.Dialog):
def __init__(self, title, parent=None):
- gtk.Dialog.__init__(self, title, parent)
+ gtk.Dialog.__init__(self, title, parent if not _using_helldon else None)
self.panarea = hildon.PannableArea()
self.panarea.set_size_request(800, 400)
self.buttons = gtk.VBox(False, 0)
self.panarea = hildon.PannableArea()
self.panarea.set_size_request(800, 400)
self.buttons = gtk.VBox(False, 0)