diff --git a/src/DbManager.py b/src/DbManager.py
index b30465327..d87442839 100644
--- a/src/DbManager.py
+++ b/src/DbManager.py
@@ -84,6 +84,7 @@ class DbManager:
self.new = self.glade.get_widget('new')
self.remove = self.glade.get_widget('remove')
self.dblist = self.glade.get_widget('dblist')
+ self.rename = self.glade.get_widget('rename')
self.model = None
if dbstate:
self.active = dbstate.db.get_save_path()
@@ -101,6 +102,7 @@ class DbManager:
def connect_signals(self):
self.remove.connect('clicked', self.remove_db)
self.new.connect('clicked', self.new_db)
+ self.rename.connect('clicked', self.rename_db)
self.selection.connect('changed', self.selection_changed)
self.dblist.connect('button-press-event', self.button_press)
@@ -115,9 +117,11 @@ class DbManager:
if not iter or store.get_value(iter, OPEN_COL):
self.remove.set_sensitive(False)
self.connect.set_sensitive(False)
+ self.rename.set_sensitive(False)
else:
self.remove.set_sensitive(True)
self.connect.set_sensitive(True)
+ self.rename.set_sensitive(True)
def build_interface(self):
render = gtk.CellRendererPixbuf()
@@ -230,6 +234,11 @@ class DbManager:
os.unlink(os.path.join(top,f))
os.rmdir(top)
+ def rename_db(self, obj):
+ store, node = self.selection.get_selected()
+ path = self.model.get_path(node)
+ self.dblist.set_cursor(path, focus_column=self.column, start_editing=True)
+
def new_db(self, obj):
while True:
base = "%x" % int(time.time())
diff --git a/src/glade/gramps.glade b/src/glade/gramps.glade
index b3eb6909f..5657f0808 100644
--- a/src/glade/gramps.glade
+++ b/src/glade/gramps.glade
@@ -15451,11 +15451,73 @@ Very High
True
True
True
- gtk-close
- True
GTK_RELIEF_NORMAL
True
-7
+
+
+
+ True
+ 0.5
+ 0.5
+ 0
+ 0
+ 0
+ 0
+ 0
+ 0
+
+
+
+ True
+ False
+ 2
+
+
+
+ True
+ gtk-close
+ 4
+ 0.5
+ 0.5
+ 0
+ 0
+
+
+ 0
+ False
+ False
+
+
+
+
+
+ True
+ Close Window
+ True
+ False
+ GTK_JUSTIFY_LEFT
+ False
+ False
+ 0.5
+ 0.5
+ 0
+ 0
+ PANGO_ELLIPSIZE_NONE
+ -1
+ False
+ 0
+
+
+ 0
+ False
+ False
+
+
+
+
+
+
@@ -15464,11 +15526,73 @@ Very High
True
True
True
- gtk-open
- True
GTK_RELIEF_NORMAL
True
-5
+
+
+
+ True
+ 0.5
+ 0.5
+ 0
+ 0
+ 0
+ 0
+ 0
+ 0
+
+
+
+ True
+ False
+ 2
+
+
+
+ True
+ gtk-apply
+ 4
+ 0.5
+ 0.5
+ 0
+ 0
+
+
+ 0
+ False
+ False
+
+
+
+
+
+ True
+ Load Family Tree
+ True
+ False
+ GTK_JUSTIFY_LEFT
+ False
+ False
+ 0.5
+ 0.5
+ 0
+ 0
+ PANGO_ELLIPSIZE_NONE
+ -1
+ False
+ 0
+
+
+ 0
+ False
+ False
+
+
+
+
+
+
@@ -15517,33 +15641,104 @@ Very High
-
+
True
- GTK_BUTTONBOX_SPREAD
+ False
0
-
+
True
- True
- True
- gtk-new
- True
- GTK_RELIEF_NORMAL
- True
-
-
+ 0
+ 0.5
+ GTK_SHADOW_NONE
-
-
- True
- True
- True
- gtk-remove
- True
- GTK_RELIEF_NORMAL
- True
+
+
+ True
+ 0.5
+ 0.5
+ 1
+ 1
+ 0
+ 0
+ 12
+ 0
+
+
+
+ True
+ GTK_BUTTONBOX_SPREAD
+ 0
+
+
+
+ True
+ True
+ True
+ gtk-new
+ True
+ GTK_RELIEF_NORMAL
+ True
+
+
+
+
+
+ True
+ True
+ True
+ gtk-delete
+ True
+ GTK_RELIEF_NORMAL
+ True
+
+
+
+
+
+ True
+ True
+ True
+ Rename
+ True
+ GTK_RELIEF_NORMAL
+ True
+
+
+
+
+
+
+
+
+
+ True
+ <b>Manage</b>
+ False
+ True
+ GTK_JUSTIFY_LEFT
+ False
+ False
+ 0.5
+ 0.5
+ 0
+ 0
+ PANGO_ELLIPSIZE_NONE
+ -1
+ False
+ 0
+
+
+ label_item
+
+
+
+ 0
+ True
+ True
+