So here goes one more, still small stuff :)

Was there any specific reason for not showing old layer name in name
changing window but instead always empty string? Name starts
highlighted, so single key press deletes it anyway, but showing it
makes it easier to tweak the name in case of typo or such.

Cheers,
Andrzej.
From 82bd75d415bf02fdab1eee34aac04b662479eec3 Mon Sep 17 00:00:00 2001
From: Andrzej Giniewicz <[email protected]>
Date: Sat, 15 May 2010 11:13:56 +0200
Subject: [PATCH] Show old name when renaming layers.

It is sometimes useful to only tweak the name of layer, displaying old name
simplifies it.
---
 gui/layerswindow.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/gui/layerswindow.py b/gui/layerswindow.py
index 2024a15..73db4b9 100644
--- a/gui/layerswindow.py
+++ b/gui/layerswindow.py
@@ -221,7 +221,7 @@ class LayerWidget(gtk.EventBox):
         self.callbacks_active = True
 
     def change_name(self, *ignore):
-        layer_name = dialogs.ask_for_name(self, _("Name"), "")
+        layer_name = dialogs.ask_for_name(self, _("Name"), self.layer.name)
         if layer_name:
             self.layer.name = layer_name
             self.layer_name.set_text(layer_name)
-- 
1.7.1

_______________________________________________
Mypaint-discuss mailing list
[email protected]
https://mail.gna.org/listinfo/mypaint-discuss

Reply via email to