[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-core-devel
Subject:    PATCH: "hint" for extensions dialog
From:       Kurt Granroth <granroth () suse ! com>
Date:       2000-10-13 20:56:47
[Download RAW message or body]

I was just adding a new mimetype for .xcf files and was puzzled why it
didn't work.  It turns out I had added ".xcf" as the extension.  That
made sense to me since the dialog asked for the extension... and that
was it.  As we all know, what it *expected* to see was "*.xcf" -- a
pattern for the entire file, not the extension.

So changing the string is out of the question now since that would
require translation.  The next best thing is to provide an example..
so that's what I did.

Basically, this patch will put "*." as the default text in the edit
box.  This should give the user some hint that that is expected.

Comments?
-- 
Kurt Granroth            | http://www.granroth.org
KDE Developer/Evangelist | SuSE Labs Open Source Developer
granroth@kde.org         | granroth@suse.com
           KDE -- Putting a Friendly Face on Unix

["filetypedetails.diff" (text/plain)]

Index: filetypedetails.cpp
===================================================================
RCS file: /home/kde/kdebase/kcontrol/filetypes/filetypedetails.cpp,v
retrieving revision 1.9
diff -b -u -u -r1.9 filetypedetails.cpp
--- filetypedetails.cpp	2000/07/18 15:10:14	1.9
+++ filetypedetails.cpp	2000/10/13 20:53:02
@@ -160,7 +160,7 @@
 {
   if ( !m_item )
     return;
-  KLineEditDlg m(i18n("Extension:"), QString::null, this);
+  KLineEditDlg m(i18n("Extension:"), "*.", this);
   m.setCaption( i18n("Add New Extension") );
   if (m.exec()) {
     if (!m.text().isEmpty()) {


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic