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 499615 - Setable items' width
Setable items' width
Status: RESOLVED OBSOLETE
Product: gnome-panel
Classification: Other
Component: window list
2.20.x
Other All
: Normal enhancement
: ---
Assigned To: Panel Maintainers
Panel Maintainers
: 510886 533212 554979 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2007-11-25 21:53 UTC by Martin Picek
Modified: 2020-11-07 12:14 UTC
See Also:
GNOME target: ---
GNOME version: Unversioned Enhancement


Attachments
Patch for libwnck to add ability to set the tasklist style (9.38 KB, patch)
2009-08-26 19:50 UTC, Marcus Carlson
none Details | Review
Patch against gnome-panel to use the window list styles in libwnck (13.12 KB, patch)
2009-08-26 19:51 UTC, Marcus Carlson
none Details | Review
Screenshot showing the window list appearance in action (209.67 KB, image/png)
2009-08-26 19:56 UTC, Marcus Carlson
  Details
Updated libwnck patch (drag and drop AND no loop) (9.26 KB, patch)
2009-08-27 11:17 UTC, Marcus Carlson
none Details | Review

Description Martin Picek 2007-11-25 21:53:11 UTC
I would like to have setable items' width. Now, they have only the preset one. For example, I would like just the icons (without the titles), or items with 60px of width, or etc.
Comment 1 Steve 2009-04-02 19:03:30 UTC
There is an applet for xfce that shows only the icons but there is nothing for Gnome. Being able to set a maximum width for the buttons is a good idea.
Comment 2 Philip Withnall 2009-05-31 12:43:24 UTC
*** Bug 510886 has been marked as a duplicate of this bug. ***
Comment 3 Philip Withnall 2009-05-31 13:14:34 UTC
*** Bug 554979 has been marked as a duplicate of this bug. ***
Comment 4 Philip Withnall 2009-05-31 13:14:53 UTC
*** Bug 533212 has been marked as a duplicate of this bug. ***
Comment 5 Philip Withnall 2009-05-31 13:15:16 UTC
Bug #533212 suggests the following options:
-window icons
-window titles
-window close buttons
Comment 6 Marcus Carlson 2009-08-26 19:50:02 UTC
Created attachment 141788 [details] [review]
Patch for libwnck to add ability to set the tasklist style

This patch adds the ability to set one of the following styles of the tasklist; icon and text, icon only, text only. But it should be fairly easy to add more.

Also, not sure if this is the right place for the patch as it is mostly about width. 

A few things I'm not really sure of;
 - when in icon only mode and the size gets to small to show the image - what to do then? Hide both icon and text (as in the patch)?
 - I did remove the call to parent allocate otherwise the window list would go into a loop when in vertical layout (why?)
 - I also removed unnecessary calls to gtk_widget_queue_resize () as do it in wnck_tasklist_update_lists ()
 - I also suck at documenting stuff

vuntz - what's your comment about this?

gnome-panel patch in a second.
Comment 7 Marcus Carlson 2009-08-26 19:51:26 UTC
Created attachment 141789 [details] [review]
Patch against gnome-panel to use the window list styles in libwnck
Comment 8 Marcus Carlson 2009-08-26 19:56:40 UTC
Created attachment 141790 [details]
Screenshot showing the window list appearance in action

Shows gnome-panel with patches applied with three window lists in the lower panel and one window list in the panel to the right. Also the visible is the preference dialog showing the different appearance options.
Comment 9 Ethan Anderson 2009-08-26 20:22:36 UTC
 If a full icon (at least) cannot be displayed, the options should spill over into a menu indicated with an arrow or triangle or whatever's on the show/hide panel buttons.  A bunch of squished/cropped icons in your panel is not helpful or elegant.
Comment 10 Marcus Carlson 2009-08-26 21:01:09 UTC
Ethan, like the scrolling in Windows XP? If so that seems like another bug as the problem is not just related to my icon only tasks.
Comment 11 Marcus Carlson 2009-08-27 10:51:35 UTC
OK, at least I know what

  GTK_WIDGET_CLASS (wnck_tasklist_parent_class)->size_allocate (widget,
                                                                allocation);

is useful for. Dragging tasks. But still, with this enabled, vertical panel tends to go into a loop. Anyone got a tip on how to solve this?
Comment 12 Marcus Carlson 2009-08-27 11:17:56 UTC
Created attachment 141841 [details] [review]
Updated libwnck patch (drag and drop AND no loop)

Not really sure why, but this one seems to be working just fine. If you got time, please try it out and comment here.
Comment 13 André Klapper 2020-11-07 12:14:08 UTC
bugzilla.gnome.org is being replaced by gitlab.gnome.org. We are closing all
old feature requests in Bugzilla which have not seen updates for many years.

If you still use gnome-panel and if you are still requesting this feature in a currently supported version of GNOME (currently that would be 3.38), then please feel free to report it at https://gitlab.gnome.org/GNOME/gnome-panel/-/issues/

Thank you for reporting this issue and we are sorry it could not be implemented.