Fixes in treeview broke listview, now fixed

simplified unicode/str casting
columnorder working


svn: r19990
This commit is contained in:
Benny Malengier
2012-07-11 17:50:51 +00:00
parent 4c5470492f
commit 9e400a2ca3
10 changed files with 51 additions and 42 deletions

View File

@@ -38,6 +38,7 @@ Base view for Place Views
# GTK/Gnome modules
#
#-------------------------------------------------------------------------
from gi.repository import Gdk
from gi.repository import Gtk
#-------------------------------------------------------------------------
@@ -212,7 +213,7 @@ class PlaceBaseView(ListView):
widget.set_stock_id(Gtk.STOCK_JUMP_TO)
if self.drag_info():
self.list.enable_model_drag_source(Gdk.ModifierType.BUTTON1_MASK,
[('text/plain', 0, 0), self.drag_info().target()],
[('text/plain', 0, 0), self.drag_info().target_data()],
Gdk.DragAction.COPY)
def __create_maps_menu_actions(self):