Panel Spacer

Plasma 4 Extensions

Source (link to git-repo or to original if based on someone elses unmodified work): Add the source-code for this project on opencode.net

8
5.0
Description:

This plasmoid let you put some blank space between the other applets located in a panel. You can set a minimum fixed size and/or allow the spacer
to stretch if there is free space on the right. Optionally, you can display a thin separator line.

This is useful if you want to place a plasmoid on the right in a panel, if you want to do logical groups of icons in your panel, etc.


Some ideas : there should be an easy way to do that in Plasma (maybe something to set the stretch factor or the minimal/maximal size of an applet directly from the panel-settings-toolbar ?). Moreover, maybe the plasma theme specs should be extended to include a SVG for separators.

Comments, patchs, code review (I'm quite new to this) are welcome :)

---------------------------------
0.1
- Kubuntu Intrepid package (checkinstall)
- Fedora 9 package by Phobeus, thanks ! More info here : http://www.floriansievert.de/linux/repo/english.html
- Kubuntu Hardy package (done with Checkinstall. It install in /usr/lib/kde4).
- Gentoo Ebuild, thanks Devel0per
Last changelog:

12 years ago

-0.2 (source only)
This is the version from Kde SVN playground. Some code cleanup and an improved calculation of the max stretch size (thanks Petri)

- 0.1 first release

Majki-Fajki

11 years ago

Any instructions for noob?

I'm running fedora 10 KDE4.2.

Report

usseldridge

11 years ago

I've just compiled from trunk, and it work like a charm in my Intrepid + KDE 4.2

Report

namakemono

11 years ago

could you please explain how you did it? im a relatively n00b.....

thanks in advance.

Report

jsakalos

11 years ago

Could you update sources please? The current version is not compatible with KDE 4.2 final (openSUSE 11.1) and crashes plasma when a panel with the spacer is shown.

Also, compilation fails.

Thanks,
Saki

Report

mkyral

11 years ago

Hi,
just update CMakeLists.txt.

find row:

find_package(Plasma REQUIRED)

And replace it by:

if ( ${KDE_VERSION} VERSION_LESS "4.1.90" )
find_package(Plasma REQUIRED)
else ( ${KDE_VERSION} VERSION_LESS "4.1.90" )
set( PLASMA_LIBS ${KDE4_PLASMA_LIBS} )
endif ( ${KDE_VERSION} VERSION_LESS "4.1.90" )

Report

jsakalos

11 years ago

Yes, works.

Thank you.

Report

mkyral

12 years ago

https://bugs.kde.org/show_bug.cgi?id=179451

Report

corwin78

12 years ago

I hope, that 64bit package for KDE4.2 on Intrepid will appear.

Report

C

DanaKil

12 years ago

I can't do this for you as I'm on 32bit but I guess it will come now that PanelSpacer is in KDE's playground and this applet seems quite popular

Report

corwin78

12 years ago

I hope so, this is very useful Plasmoid. Thanks a lot for it. Anyway I'm tried compile it by my self but some error appear and I'm not such skilled to solve it so I must wait.

Report

xee

12 years ago

Unfortunately the intrepid packages don't work with KDE 4.2 beta1, I hope someone can provide binaries.

Thanks.

Report

C

DanaKil

12 years ago

Hi,

PanelSpacer is now in KDE-playground :
http://websvn.kde.org/trunk/playground/base/plasma/applets/panelspacer/

I hope distro will package it for the 4.2 final.

I will post an updated version here in a few days (I'm not at home right now)

Report

serenity182

11 years ago

I did a package for 4.2 final on intrepid. If needed, tell me.

Report

bibstha

12 years ago

In my Kubuntu 8.10(Intrepid Ibex) I installed the deb for Kubuntu 8.04 (Hardy Heron) but it doesnot work. Has anyone a build for 8.10?

I guess the hardy deb didn't work due to change in location where kde is installed.

If someone has a deb for Intrepid Ibex please post.

Report

C

DanaKil

12 years ago

done

Report

bibstha

12 years ago

couldn't be happy enough :D works great! thanks

Report

jirityr

12 years ago

I like this widget because it allows me to split groups of icons in the panel.

What I do not like is that when I log-out and log-in again, some of the spacers lost its position in the panel and they appears on the right hand side.

I would really appreciate if you could fix this non pleasant behavior.

Report

C

DanaKil

12 years ago

I don't think this is related to the plasmoid itself (they don't manage their own position in panels) so this is maybe a plasma bug. You should try to reproduce step by step this behavior and fill a bug report (or you can describe how to trigger this behavior and tell it to me so I can check if I have the same problem)

Report

jirityr

12 years ago

I have this sequence of items in the panel:

Application Launcher, System Settings, Pager (4 desktops), Thunderbird, Firefox, Konsole, Panel Spacer, Task Manager, Panel Spacer, Lock/Logout, Panel Spacer, System Tray, Panel Spacer, Digital Clock

When I do log-out and log-in, the first Spacer is on the right hand side of the Digital Clock. Does not matter if the widgets are Locked or not. All Panel Spacers have the same setting:

Minimal size: |X----------------|
|_| The spacer can automatically stretch
Style: Line
Possition: Middle

Report

C

DanaKil

12 years ago

Hi,
Following your indications, I can't reproduce this bug but I don't think this is directly related to PanelSpacer (Plasma had several problems with saving of the plasmoid's positions before...)

Btw, I'm using Kubuntu Intrepid (KDE 4.1.3)

If anybody else has something to say about this, please add a comment :)

Report

jirityr

12 years ago

I am using Gentoo Linux (KDE 4.1.3) with USE="kdeprefix". If somebody has a similar problem, please note it here.

Report

C

DanaKil

12 years ago

This bug may be related :
https://bugs.kde.org/show_bug.cgi?id=168920

Report

jirityr

12 years ago

Thanks for the link. I have just added a comment there.

Report

shanakard

12 years ago

Hey danakil, great work ...
really really appreciate this.

in order for the configurations to be enabled in KDE 4.1 u need to add "setHasConfigurationInterface(true);" to the beginning of the constructor.

also it would be great if the maximum length of the spacer would be the size of the screen (or the max_size of the panel that it resides in)

ThankX.

Report

C

DanaKil

12 years ago

"in order for the configurations to be enabled in KDE 4.1 u need to add "setHasConfigurationInterface(true);" to the beginning of the constructor"

hu ? I'm quite sure I've done that... (can't check now, I'm on a Windows computer :-( which can't open tar.gz)
I will take a look when I will be back at home

About the maximum length, the problem is more tricky : ideally, the max length should be the available free space in the panel but I don't know how to get this :(

Report

12 years ago

-0.2 (source only)
This is the version from Kde SVN playground. Some code cleanup and an improved calculation of the max stretch size (thanks Petri)

- 0.1 first release

12345678910
21
product-maker nemesis2009 Sep 13 2012 3 bad
product-maker joseexposito89 Aug 30 2011 3 bad
product-maker Okanda Nov 09 2010 9 excellent
Be the first to comment
Nafassom
May 05 2018
DaiVied
Dec 19 2009
Franklin
Jul 31 2009
sensemilla
Mar 07 2009
corwin78
Mar 06 2009
mkyral
Jan 28 2009
Yggdrasill
Jan 23 2009
BLeAm
Jan 19 2009
File (click to download) Version Description Downloads Date Filesize DL OCS-Install MD5SUM
*Needs pling-store or ocs-url to install things
Pling
0 Affiliates
Details
license
version
0.2
updated Dec 14 2008
added Sep 14 2008
downloads 24h
0
mediaviews 24h 0
pageviews 24h 6