summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordavemds <dave@gurumeditation.it>2013-11-20 21:55:49 +0100
committerdavemds <dave@gurumeditation.it>2013-11-20 21:55:49 +0100
commit54ead421d37ef960faed8d5704672060bdd3a392 (patch)
tree1745d9f79f943a7879a081f036a5b276f860dc5d
parentd35bf71a0867f0178b229167795dacabf4161197 (diff)
Espionage: fix for recent enum change in pyefl
-rw-r--r--espionage/espionage.py20
1 files changed, 11 insertions, 9 deletions
diff --git a/espionage/espionage.py b/espionage/espionage.py
index b60ad00..342c04b 100644
--- a/espionage/espionage.py
+++ b/espionage/espionage.py
@@ -39,7 +39,9 @@ from efl.elementary.popup import Popup
39from efl.elementary.separator import Separator 39from efl.elementary.separator import Separator
40from efl.elementary.table import Table 40from efl.elementary.table import Table
41from efl.elementary.frame import Frame 41from efl.elementary.frame import Frame
42from efl.elementary.genlist import Genlist, GenlistItem, GenlistItemClass 42from efl.elementary.genlist import Genlist, GenlistItem, GenlistItemClass, \
43 ELM_GENLIST_ITEM_GROUP, ELM_GENLIST_ITEM_TREE, \
44 ELM_OBJECT_SELECT_MODE_DISPLAY_ONLY, ELM_LIST_SCROLL
43from efl.dbus_mainloop import DBusEcoreMainLoop 45from efl.dbus_mainloop import DBusEcoreMainLoop
44 46
45 47
@@ -282,13 +284,13 @@ class NamesList(Genlist):
282 284
283 # add private & public group items 285 # add private & public group items
284 self.public_group = self.item_append(self.itc_g, "Public Services", 286 self.public_group = self.item_append(self.itc_g, "Public Services",
285 flags=elm.ELM_GENLIST_ITEM_GROUP) 287 flags=ELM_GENLIST_ITEM_GROUP)
286 self.public_group.select_mode_set(elm.ELM_OBJECT_SELECT_MODE_DISPLAY_ONLY) 288 self.public_group.select_mode_set(ELM_OBJECT_SELECT_MODE_DISPLAY_ONLY)
287 289
288 if options.show_private_stuff: 290 if options.show_private_stuff:
289 self.private_group = self.item_append(self.itc_g, "Private Services", 291 self.private_group = self.item_append(self.itc_g, "Private Services",
290 flags=elm.ELM_GENLIST_ITEM_GROUP) 292 flags=ELM_GENLIST_ITEM_GROUP)
291 self.private_group.select_mode_set(elm.ELM_OBJECT_SELECT_MODE_DISPLAY_ONLY) 293 self.private_group.select_mode_set(ELM_OBJECT_SELECT_MODE_DISPLAY_ONLY)
292 294
293 # populate the genlist 295 # populate the genlist
294 self.populate() 296 self.populate()
@@ -392,8 +394,8 @@ class DetailList(Genlist):
392 # objects 394 # objects
393 for obj in recursive_introspect(bus, name, '/'): 395 for obj in recursive_introspect(bus, name, '/'):
394 obj_item = self.item_append(self.itc_g, obj, 396 obj_item = self.item_append(self.itc_g, obj,
395 flags=elm.ELM_GENLIST_ITEM_GROUP) 397 flags=ELM_GENLIST_ITEM_GROUP)
396 obj_item.select_mode_set(elm.ELM_OBJECT_SELECT_MODE_DISPLAY_ONLY) 398 obj_item.select_mode_set(ELM_OBJECT_SELECT_MODE_DISPLAY_ONLY)
397 399
398 # interfaces 400 # interfaces
399 for iface in obj.interfaces: 401 for iface in obj.interfaces:
@@ -402,7 +404,7 @@ class DetailList(Genlist):
402 continue 404 continue
403 iface_item = self.item_append(self.itc, iface, 405 iface_item = self.item_append(self.itc, iface,
404 parent_item=obj_item, 406 parent_item=obj_item,
405 flags=elm.ELM_GENLIST_ITEM_TREE) 407 flags=ELM_GENLIST_ITEM_TREE)
406 408
407 def sort_cb(self, it1, it2): 409 def sort_cb(self, it1, it2):
408 pri1 = pri2 = 0 410 pri1 = pri2 = 0
@@ -581,7 +583,7 @@ class SignalReceiver(Frame):
581 vbox.show() 583 vbox.show()
582 self.content = vbox 584 self.content = vbox
583 585
584 self.siglist = Genlist(self, homogeneous=True, mode=elm.ELM_LIST_SCROLL) 586 self.siglist = Genlist(self, homogeneous=True, mode=ELM_LIST_SCROLL)
585 self.siglist.size_hint_weight = EVAS_HINT_EXPAND, EVAS_HINT_EXPAND 587 self.siglist.size_hint_weight = EVAS_HINT_EXPAND, EVAS_HINT_EXPAND
586 self.siglist.size_hint_align = EVAS_HINT_FILL, EVAS_HINT_FILL 588 self.siglist.size_hint_align = EVAS_HINT_FILL, EVAS_HINT_FILL
587 self.siglist.callback_clicked_double_add(self.signal_clicked_cb) 589 self.siglist.callback_clicked_double_add(self.signal_clicked_cb)