Home Forums Wiki Doc Install Extras Screenshots Source Code Projects Blog Users Groups Register
Glx-Dock / Cairo-Dock List of forums Problems at use | Problèmes à l'utilisation How to unset SetQuickInfo in a launcher?
The latest stable release is the *3.4.0* : How to install it here.
Note: We just switched from BZR to Git on Github! (only to host the code and your future pull requests)
Problems at use | Problèmes à l'utilisation

Subjects Author Language Messages Last message
[Locked] How to unset SetQuickInfo in a launcher? [Bug #41]
Guest English 7 fabounet [Read]
24 May 2010 à 17:49

Guest, Monday 24 May 2010 à 11:26

Hi,

I have liferea launcher in glx-dock 2.1.3-9(fedora 13), and to have information of unread items I have in crontab:
DISPLAY=:0.0
* * * * * ~/liferea_cairodock.sh > /dev/null 2>&1

liferea_cairodock.sh
#!/usr/bin/env bash

ps=`dbus-send --session --print-reply=literal --type=method_call --dest=org.gnome.feed.Reader /org/gnome/feed/Reader org.gnome.feed.Reader.GetUnreadItems`
num=${ps##* }
if [ "$num" -gt "0" ]; then
    dbus-send --session --dest=org.cairodock.CairoDock /org/cairodock/CairoDock org.cairodock.CairoDock.SetQuickInfo string:$num string:none string:liferea string:none
elif [ "$num" -eq "0" ]; then
    dbus-send --session --dest=org.cairodock.CairoDock /org/cairodock/CairoDock org.cairodock.CairoDock.SetQuickInfo string: string:none string:liferea string:none
fi


The question is, how to effectively unset SetQuickInfo when there are no unread items, because the hack I use, an empty string, will leave this:
http://img143.imageshack.us/img143/4816/capturaecrad.png

regards

Guest, Monday 24 May 2010 à 11:34

For comparability, this is when there is one unread item:

http://img22.imageshack.us/img22/2536/capturaecra1n.png

nochka85, Monday 24 May 2010 à 11:57


Subscription date : 29 November 2007
Messages : 7408
@Fabounet : BTW, you can see the "1" is not centered

Guest, Monday 24 May 2010 à 12:46

It's for Fabounet then.

I notice it too, but this is because of the theme or font, isn't it?

nochka85, Monday 24 May 2010 à 12:59


Subscription date : 29 November 2007
Messages : 7408
nope ... it's because the label aren't centered at all

fabounet, Monday 24 May 2010 à 15:13


Subscription date : 30 November 2007
Messages : 17118
I've forgotten this case in the API, I'll add it
so passing a null string will remove the quick-info
same for the labels

PS : the test is centered, it depends on the font.

nochka85, Monday 24 May 2010 à 16:30


Subscription date : 29 November 2007
Messages : 7408
It could be better with a larger bubble

fabounet, Monday 24 May 2010 à 17:49


Subscription date : 30 November 2007
Messages : 17118
ok, I'll set a minimum size

Problems at use | Problèmes à l'utilisation

Subjects Author Language Messages Last message
[Locked] How to unset SetQuickInfo in a launcher? [Bug #41]
Guest English 7 fabounet [Read]
24 May 2010 à 17:49


Glx-Dock / Cairo-Dock List of forums Problems at use | Problèmes à l'utilisation How to unset SetQuickInfo in a launcher? Top

Online users :

Powered by ElementSpeak © 2007 Adrien Pilleboue, 2009-2013 Matthieu Baerts.
Dock based on CSS Dock Menu (Ndesign) with jQuery. Icons by zgegball
Cairo-Dock is a free software under GNU-GPL3 licence. First stable version created by Fabounet.
Many thanks to TuxFamily for the web Hosting and Mav for the domain name.