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 300593 - A separator applet for the panel
A separator applet for the panel
Status: RESOLVED FIXED
Product: gnome-panel
Classification: Other
Component: general
2.12.x
Other All
: Normal enhancement
: ---
Assigned To: Panel Maintainers
Panel Maintainers
Depends on:
Blocks:
 
 
Reported: 2005-04-14 11:03 UTC by Callum McKenzie
Modified: 2015-03-24 13:00 UTC
See Also:
GNOME target: ---
GNOME version: Unversioned Enhancement


Attachments
A tarball of the relevant files (as described above) (4.70 KB, application/x-compressed-tar)
2005-04-14 11:05 UTC, Callum McKenzie
  Details
An example showing the applet in action (12.51 KB, image/png)
2005-04-14 11:08 UTC, Callum McKenzie
  Details
A patch that adds a separator object for the panel (18.96 KB, patch)
2005-04-16 16:24 UTC, Carlos Garcia Campos
none Details | Review
New patch adding the separator to the panel (19.53 KB, patch)
2005-09-01 09:41 UTC, Manu Cornet
none Details | Review
Icon for the separator internal applet (6.83 KB, image/png)
2005-09-01 09:43 UTC, Manu Cornet
  Details
New patch updated to the current CVS (18.39 KB, patch)
2005-12-25 11:30 UTC, Carlos Garcia Campos
committed Details | Review
New separator icon (6.17 KB, image/png)
2006-01-13 19:17 UTC, Manu Cornet
  Details
New icon (right size) (3.31 KB, image/png)
2006-01-13 19:25 UTC, Manu Cornet
  Details

Description Callum McKenzie 2005-04-14 11:03:52 UTC
While trying to organise a long row of icons on my panel I realised that there
was something missing: the separator that we see so often on toolbars. I have
attached below code for an applet to implement it.

I haven't attached a patch to fix up the Makefile.am and the like, but I have
included the .server file, a sample icon and a simple Makefile that is good
enough for testing it.

There is one known bug with the current code: the separator is drawn as a thick
black line on a pixmap background or a transparent panel. This appears to be
gtk_paint_vline not wanting to draw correctly on such a background.

I have filed it here rather than with the applets module since it is meant to be
associated with the launchers rather than being stand-alone. Feel free to punt
it along there if you don't want it in core gnome-panel. 

Also in its favour: it is also simpler example code than the fish applet.
Comment 1 Callum McKenzie 2005-04-14 11:05:58 UTC
Created attachment 45244 [details]
A tarball of the relevant files (as described above)

The basic files needed to build and test the applet. The Makefile will need
altering to specify an appropriate prefix.
Comment 2 Callum McKenzie 2005-04-14 11:08:13 UTC
Created attachment 45245 [details]
An example showing the applet in action

Also, a PNG showing the applet in action. The three groups of icons are all
functionally different (leftmost = common apps, middle = some commands
associated with jhbuild, left = commonly accessed folders), the separator helps
break them up without needing to spread the icons out.
Comment 3 Vincent Untz 2005-04-14 11:14:29 UTC
Nice idea. I'm not sure we should do an applet for this, though. It'd be
probably better and easier to have an internal object (like the launcher).

Mark: any comments?
Comment 4 Sean Middleditch 2005-04-15 02:08:08 UTC
Something like the quick-lounge applet, but cleaned up a bit, might be more
useful here.  It has the additional benefit of letting you move an entire group
of launchers together as one, scrunching them down (so they'll appear in a
common drop-down on space-confined panels), and more.  if it could be extended
to hold _any_ kind of panel object, it might make general organization and
grouping a little easier to manage.  Perhaps having the drag-handles (even
cleaned up drag handles) would be too much garbage on the screen, though?
Comment 5 Gabriel de Perthuis 2005-04-15 05:03:28 UTC
(FWIW) Completely agreed. Externally, an applet; internally, a panel. Related:
the quick lounge, drawers?
Comment 6 Vincent Untz 2005-04-15 07:19:09 UTC
Sean: I agree that having something like the quick-lounge applet could be
useful, but this is not exactly the same problem here.
Comment 7 Bastien Nocera 2005-04-15 07:42:15 UTC
See also the 3 year old horror of a hack:
http://www.hadess.net/files/attic/gnomepanelspacerapplet.org-10.0-zoom-zoom.tar.gz
Comment 8 Carlos Garcia Campos 2005-04-16 16:24:26 UTC
Created attachment 45329 [details] [review]
A patch that adds a separator object for the panel

I also think it's better an internal object for this so simple item rather than
an applet. So, this patch adds a separator as new panel object. 

Ok to commit?
Comment 9 Manu Cornet 2005-09-01 09:41:13 UTC
Created attachment 51648 [details] [review]
New patch adding the separator to the panel

Here's a new version of the previous patch, modified to match the current
version of the panel. It requires that the patch adding categories to applets
and the patch making the "add to panel" dialog a canvas (right now available
from Ubuntu) are already applied. See next attachment for an appropriate icon.
Comment 10 Manu Cornet 2005-09-01 09:43:21 UTC
Created attachment 51649 [details]
Icon for the separator internal applet

This is an icon for the separator applet for the gnome panel. It will appear in
the "add to panel" dialog's icon list. See previous patch to see where this
file belongs.
Comment 11 Sebastien Bacher 2005-10-19 14:52:49 UTC
what about pushing that for 2.14, Vincent? :)
Comment 12 Carlos Garcia Campos 2005-12-25 11:30:17 UTC
Created attachment 56384 [details] [review]
New patch updated to the current CVS

Here is an updated patch for the current CVS. It still needs an icon so we can use the one proposed by Manu Cornet if you like it.
Comment 13 Manu Cornet 2006-01-02 22:40:50 UTC
Well, since nobody answered, I shall say I like it :-p Thanks for the update !
Comment 14 Vincent Untz 2006-01-13 08:32:53 UTC
I committed a slightly modified version of the patch.

Manu: could you make a new icon like the one you proposed, but with launchers icons that are in the default setup (ie, epiphany & evolution launchers)? Also, make sure you use the Clearlooks theme.

Thanks
Comment 15 Manu Cornet 2006-01-13 19:17:48 UTC
Created attachment 57303 [details]
New separator icon

New icon ! Good ? :)
Comment 16 Manu Cornet 2006-01-13 19:25:08 UTC
Created attachment 57304 [details]
New icon (right size)

Huh no, not good. Here's the 48x48 one, sorry.
Comment 17 Vincent Untz 2006-01-14 15:00:52 UTC
Thanks