After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 126176 - need UI for GOK's 'auxiliarly wordlist'
need UI for GOK's 'auxiliarly wordlist'
Status: RESOLVED FIXED
Product: gok
Classification: Deprecated
Component: settings
unspecified
Other All
: High normal
: ---
Assigned To: David Bolter
Calum Benson
Depends on:
Blocks: 122112
 
 
Reported: 2003-11-04 14:47 UTC by bill.haneman
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
a screenshot showing the road i am thinking of travelling... (29.74 KB, image/png)
2003-11-19 15:23 UTC, David Bolter
  Details
second design iteration (24.81 KB, image/png)
2003-12-01 14:39 UTC, David Bolter
  Details
this one with stock buttons (25.62 KB, image/png)
2003-12-01 14:42 UTC, David Bolter
  Details
proposed patch (44.09 KB, patch)
2004-01-09 16:57 UTC, David Bolter
none Details | Review

Description bill.haneman 2003-11-04 14:47:42 UTC
GOK can now use a user-defined (or sysadmin-defined) auxiliarly wordlist
for its word completion in addition to the GOK dictionary.  There are 2
gconf keys controlling this, /apps/gok/use_aux_dicts (boolean) and
/apps/gok/aux_dictionaries (semicolon-delimited path list).  I think we
need to connect these to some UI for gnome-2.6.  Feature/UI freeze is
end-December I think.
Comment 1 bill.haneman 2003-11-14 15:35:29 UTC
David, can you take this?  You might check with Calum with respect to
the UI/usability of the resulting dialog.
Comment 2 David Bolter 2003-11-14 16:08:42 UTC
Sure.
Comment 3 David Bolter 2003-11-17 16:28:33 UTC
I may not get to this immediately.
Comment 4 David Bolter 2003-11-19 15:22:15 UTC
Adding Calum as a QA contact for this HIG related work.
Comment 5 David Bolter 2003-11-19 15:23:03 UTC
Created attachment 21623 [details]
a screenshot showing the road i am thinking of travelling...
Comment 6 David Bolter 2003-11-19 15:25:44 UTC
Calum,

I am thinking that the list will display full paths to word completion
files.  Addition can be done by hand (or by browsing which i haven't
added yet), and removal can be done with the delete key.  Is this
suitable?
Comment 7 Calum Benson 2003-12-01 12:37:56 UTC
With a list of items, it's more usual to have explicit Add and Remove
buttons, that pop up a file browser or deleted the selected item(s)
respectively.

I'd be pretty tempted to remove the bold "Completions" header as well,
so you just have a "Word Completion" section and a "Command
Completion" section.
Comment 8 bill.haneman 2003-12-01 12:53:56 UTC
sounds right (David's suggestion plus Calum's feeback).

I expect we could use the new gtk file chooser for this, i.e. launch
the file chooser with the 'add' button.  It'd be nice (but perhaps not
required) if we checked the file once it's added, to make sure it's
readable and appears to contain a word list.

This needs to be completed by the feature freeze (12 Jan).
Comment 9 David Bolter 2003-12-01 14:39:18 UTC
Created attachment 21986 [details]
second design iteration
Comment 10 David Bolter 2003-12-01 14:42:01 UTC
Created attachment 21987 [details]
this one with stock buttons
Comment 11 bill.haneman 2003-12-01 14:48:08 UTC
ok:

it would be nice if the add/remove, additional word list checkbutton,
and table were all somehow grouped visually together in the dialog. 
It takes a little looking to figure out for certain that the table is
for the auxiliary word list (only).

also - why two columns?
Comment 12 David Bolter 2003-12-08 15:18:01 UTC
No reason for the two columns (I haven't modified the default).
Comment 13 bill.haneman 2003-12-09 16:05:44 UTC
bumping up prio since this feature is targeted for gnome 2.6 (feature
freeze Jan 12).  This feature impacts internationalization.
Comment 14 bill.haneman 2004-01-06 19:13:52 UTC
David, this one needs implementation this week.  Can you do it?
Comment 15 David Bolter 2004-01-06 19:39:03 UTC
This got backlogged when I moved from RH to SuSE.  I can make this a
priority and I can/will fit it in for this week.
Comment 16 David Bolter 2004-01-09 16:57:40 UTC
Created attachment 23169 [details] [review]
proposed patch
Comment 17 David Bolter 2004-01-09 17:01:54 UTC
Note: I've broken the API freeze with this patch.  Also, I have
implemented this version of the UI from scratch (don't ask).  It
provides the UI to specify one extra word list file.  I have made it
easy to add more, but I am concerned about tidying up other
UI/features too.  It uses a GnomeFileEntry... I hope that's okay until
there is a GTK one?

TODO: 
hook up to word completion list internal model.
test extra word list file format and warn user if bad.
Comment 18 bill.haneman 2004-01-09 18:35:31 UTC
David: the API issue is OK since GOK doesn't provide any 'platform'
libraries.
Thanks for doing this.
GnomeFileEntry?  But there's a gtk one now!  (in gtk+ 2.3 and above)


Can you check on the GtkFileSelector in current gtk+ (we already have
a dependency on gtk+ 2.3.X anyhow) and see if we can't use that
instead?  I don't think any new 2.6-bound code should be using
GnomeFileEntry.
Comment 19 David Bolter 2004-01-09 19:15:58 UTC
I don't see a GtkFileSelector... I do see a GtkFileSelection, which I
think is just a dialog.  I would be pretty straight forward to roll my
own GtkEntry + button + GtkFileSelection combination I guess...  What
do you think?  Is there a GTK version of the very handy GnomeFileEntry
widget?
Comment 20 bill.haneman 2004-01-09 21:01:05 UTC
gtk+/gtk/gtkfilesel.h

It is a dialog.  I didn't get that you wanted to do this via some kind
of file-combobox thingy.  What lib is GnomeFileEntry in ?  I don't see
a lot of use of it grepping cvs.  But maybe it's fine if it's in
libgnome or something, not sure.  Go ahead and put it in I guess, then
ping Calum for HIG advice on it; we could change on the basis of UI
review feedback before the 'Hard UI Freeze' which is a couple weeks away.
Comment 21 David Bolter 2004-01-09 21:37:17 UTC
Found it in libgnomeui:
http://cvs.gnome.org/bonsai/cvsblame.cgi?file=libgnomeui%2Flibgnomeui/gnome-file-entry.c&rev=&root=/cvs/gnome

So, I'll submit the patch I guess and ping Calum.
Comment 22 bill.haneman 2004-01-10 14:51:03 UTC
before I forget: have a look at GtkFileChooser, that might be what we
want here.
Comment 23 David Bolter 2004-01-12 15:07:55 UTC
It appears to be a dialog (a replacement for GtkFileSelection). I've
committed the patch as is to head.

Calum, can you take a look at the UI and advise?  It is on the gok
preferences notebook on the Prediction page (gok --settings).

If need be, I should be able to move to a pure Gtk version later
without any visual changes.
Comment 24 David Bolter 2004-01-12 15:54:45 UTC
Note I accidentally committed a bad version of gok-page-wordcomplete.c
( and will correct this shortly)
Comment 25 Calum Benson 2004-01-13 13:18:19 UTC
I'm in the middle of re-building GNOME from scratch, so I'll take a
look as soon as it's gotten around to rebuilding GOK...
Comment 26 bill.haneman 2004-01-22 16:00:43 UTC
closing this bug since an implementation is now in cvs.
however we ought to remember that reviewing this UI should be part of
the HIG review process for GOK.
Comment 27 Calum Benson 2004-02-02 17:44:57 UTC
The UI for adding a single extra word list (as now in CVS) looks fine
to me, except to say that the horizontal separator probably isn't
really necessary-- a bit of blank space would do the job just as well
with less clutter.  

But I'm not overly fussed about that, and unless you're planning to
get a multiple-lists version in before hard UI freeze on Feb 9th, I
don't think there's any need for any further UI review on this
particular feature.  (I'll try and give the rest of the app a quick
once over this week for any other minor issues, though.)