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 324342 - Some UI Fixes for New Gnome-Dictionary
Some UI Fixes for New Gnome-Dictionary
Status: RESOLVED FIXED
Product: gnome-utils
Classification: Deprecated
Component: gdict
trunk
Other Linux
: Normal normal
: ---
Assigned To: gnome-utils Maintainers
gnome-utils Maintainers
Depends on:
Blocks:
 
 
Reported: 2005-12-17 18:01 UTC by Dennis Cranston
Modified: 2005-12-19 21:27 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Proposed patch (8.97 KB, patch)
2005-12-17 18:01 UTC, Dennis Cranston
none Details | Review
Screenshot (14.57 KB, image/png)
2005-12-17 18:02 UTC, Dennis Cranston
  Details
Proposed patch (2.69 KB, patch)
2005-12-19 04:00 UTC, Dennis Cranston
none Details | Review

Description Dennis Cranston 2005-12-17 18:01:10 UTC
2005-12-17  Dennis Cranston <dennis_cranston@yahoo.com>

        * src/gdict-window.c:  UI fixes.  Fix widget spacing.  Change
        "find" back to "look up" to avoid confusion caused by its
        double use.

        * libgdict/gdict-defbox.c:  UI fixes for the find widgets.
Comment 1 Dennis Cranston 2005-12-17 18:01:39 UTC
Created attachment 56098 [details] [review]
Proposed patch
Comment 2 Dennis Cranston 2005-12-17 18:02:15 UTC
Created attachment 56099 [details]
Screenshot
Comment 3 Emmanuele Bassi (:ebassi) 2005-12-17 21:09:58 UTC
thanks, I've included this into HEAD now.

2005-12-17  Emmanuele Bassi  <ebassi@cvs.gnome.org>

	A bunch UI fixes from Dennis Cranston, and a bunch of fixes triggered
	by a down of dict.org.

	* libgdict/gdict-defbox.c, src/gdict-window.c: fix lifetime of the
	GdictContext and related signal handlers.

	* libgdict/gdict-client-context.c (gdict_client_context_finalize),
	(clear_command_queue): fix a double free bug issued when finalizing a
	ClientContext with a non-empty queue (patch by Paolo Borelli).

	* libgdict/gdict-client-context.c: emit "error" when unable to connect
	to the dictionary server.

	* libgdict/gdict-defbox.c:  UI fixes for the find widgets (patch by
	Dennis Cranston).

	* src/gdict-window.c:  UI fixes.  Fix widget spacing.  Change 
	"find" back to "look up" to avoid confusion caused by its 
	double use (patch by Dennis Cranston).

	* libgdict/gdict-source.c: fix the "context" propery;

	* src/gdict-window.c: add "source-name" and "word" constructor
	properties, so that a window might be created with a pre-defined
	source and word to look up.

	* libgdict/gdict-app.c (gdict_create_window),
	(gdict_window_created_cb), (gdict_window_destroy_cb): fix multiple
	registration of callbacks and remove the loop on the windows list for
	good (based on a patch by Paolo Borelli).

	* src/gdict-app.c: begin command line arguments support, and attach
	a GOptionContext to gnome_program_init().
Comment 4 Dennis Cranston 2005-12-19 04:00:32 UTC
Created attachment 56136 [details] [review]
Proposed patch

It looks like some of my previously attached patch was not applied to CVS.  This patch includes the missing parts.  Thanks.
Comment 5 Dennis Cranston 2005-12-19 04:01:42 UTC
I am reopening because some of the previously attached patch did not get applied to cvs.
Comment 6 Emmanuele Bassi (:ebassi) 2005-12-19 08:41:08 UTC
thanks.

as for the second chunk of the patch, the packing layout seems like:

  find_pane (HBox)
    Label
    HBox
      find_entry (Entry)
      Separator
      find_prev (Button)
      HBox
        find_next (Button)
        find_label (Label)

which doesn't seem "logical".  the logical layout would be:

  find_pane
    HBox
      Label
      find_entry
    Separator
    HBox
      find_prev
      find_next
    find_label
Comment 7 Emmanuele Bassi (:ebassi) 2005-12-19 08:51:08 UTC
better:

  find_pane (HBox, homogeneous=false, spacing=6)
    HBox (homogeneous=false, spacing=6)
      Label
      find_entry
    Separator
    HBox (homogeneous=false, spacing=6)
      find_prev
      find_next
      find_label

this yields a UI like your screenshot, while retaining a logical separation for the widgets inside the layout.
Comment 8 Dennis Cranston 2005-12-19 17:18:14 UTC
Regarding comment #7, the distance between the label and entry should be 12 not 6 pixels.  While, the distance between the buttons should be 6 pixels.  

Regarding comment #6, the reason for the hbox2 with 0 pixel spacing is to allow the next button to align with the other widgets on the right edge of the main window.  So, if the "Not found" label is hidden we don't have 6 pixels of empty space on the right side.
Comment 9 Dennis Cranston 2005-12-19 17:43:50 UTC
My proposed layout whould be like this.

  find_pane (HBox, homogeneous=false, spacing=0)
    HBox (homogeneous=false, spacing=6)
      HBox (homogeneous=false, spacing=12)
        Label
        find_entry
      Separator
      find_prev
      find_next
    find_label
Comment 10 Emmanuele Bassi (:ebassi) 2005-12-19 18:01:44 UTC
okay, I'm going to update the layout as shown in comment #9
Comment 11 Emmanuele Bassi (:ebassi) 2005-12-19 18:02:21 UTC
fixed in HEAD

Comment 12 Dennis Cranston 2005-12-19 21:27:04 UTC
Your changes look great.