From 149b049650e289a263ad8d762856aaefbe74b295 Mon Sep 17 00:00:00 2001 From: Nick Hall Date: Wed, 25 Feb 2015 14:28:25 +0000 Subject: [PATCH] Remove place title from default view columns --- gramps/plugins/lib/libplaceview.py | 2 +- gramps/plugins/view/placetreeview.py | 31 ---------------------------- 2 files changed, 1 insertion(+), 32 deletions(-) diff --git a/gramps/plugins/lib/libplaceview.py b/gramps/plugins/lib/libplaceview.py index 2f4b6f02b..fc61b13ff 100644 --- a/gramps/plugins/lib/libplaceview.py +++ b/gramps/plugins/lib/libplaceview.py @@ -101,7 +101,7 @@ class PlaceBaseView(ListView): ] # default setting with visible columns, order of the col, and their size CONFIGSETTINGS = ( - ('columns.visible', [COL_TITLE, COL_ID, COL_TYPE, COL_CODE]), + ('columns.visible', [COL_NAME, COL_ID, COL_TYPE, COL_CODE]), ('columns.rank', [COL_NAME, COL_TITLE, COL_ID, COL_TYPE, COL_CODE, COL_LAT, COL_LON, COL_PRIV, COL_TAGS, COL_CHAN]), ('columns.size', [250, 250, 75, 100, 100, 150, 150, 40, 100, 100]) diff --git a/gramps/plugins/view/placetreeview.py b/gramps/plugins/view/placetreeview.py index 556e2fd54..94fa10229 100644 --- a/gramps/plugins/view/placetreeview.py +++ b/gramps/plugins/view/placetreeview.py @@ -52,37 +52,6 @@ class PlaceTreeView(PlaceBaseView): """ A hierarchical view of the top three levels of places. """ - COL_NAME = 0 - COL_ID = 1 - COL_TITLE = 2 - COL_TYPE = 3 - COL_CODE = 4 - COL_LAT = 5 - COL_LON = 6 - COL_PRIV = 7 - COL_TAGS = 8 - COL_CHAN = 9 - # column definitions - COLUMNS = [ - (_('Name'), TEXT, None), - (_('ID'), TEXT, None), - (_('Title'), TEXT, None), - (_('Type'), TEXT, None), - (_('Code'), TEXT, None), - (_('Latitude'), TEXT, None), - (_('Longitude'), TEXT, None), - (_('Private'), ICON, 'gramps-lock'), - (_('Tags'), TEXT, None), - (_('Last Changed'), TEXT, None), - ] - # default setting with visible columns, order of the col, and their size - CONFIGSETTINGS = ( - ('columns.visible', [COL_NAME, COL_ID, COL_TYPE, COL_CODE]), - ('columns.rank', [COL_NAME, COL_ID, COL_TITLE, COL_TYPE, COL_CODE, - COL_LAT, COL_LON, COL_PRIV, COL_TAGS, COL_CHAN]), - ('columns.size', [250, 75, 150, 100, 100, 150, 150, 40, 100, 100]) - ) - def __init__(self, pdata, dbstate, uistate): PlaceBaseView.__init__(self, pdata, dbstate, uistate, _('Place Tree View'), PlaceTreeModel,