Home Forums Wiki Doc Install Extras Screenshots Source Code Projects Blog Users Groups Register
Glx-Dock / Cairo-Dock List of forums Applets | Applets Weather: left-click on icon opens Weather.com in a browser
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)
Applets | Applets

Subjects Author Language Messages Last message
[Locked] Weather: left-click on icon opens Weather.com in a browser [Bug #97]
Page : 1 2
Guest English 31 Guest [Read]
02 November 2011 à 22:34

SQP, Thursday 30 September 2010 à 10:11


Subscription date : 03 July 2010
Messages : 1081
I know that some users still have problems with that, but I'm one of those thinking they'd better be educated on common computers usage, rather than
(as sysadmin, I know how they work. Most of those having problems is because they just don't want to learn or understand. And I don't blame them, MS ads try to suggest they don't have to for years)

Double-clicking on the Sound Control applet should display the Sound Preferences window without showing the volume slider popup opening and closing. A little tweaking on some of the applet's handling of double-click would be an improvement.


You should tell me how the program could know that you will double click when he is opening the dialog for the first one (opening delay isn't a good one).
Seeing the dialog appear for less than 1 sec and vanish isn't a big trouble. I guess it's better than having nothing on double click (that should only show and hide the dialog), and be forced to right click and find the option (mute is mandatory on middle)

Unlike a Nautilus launcher, double-clicking on the Trash applet should only open one Nautilus window


I have troubles understanding why it should behave differently

I'm not against a double click security that would prevent double launch, but I think that if something like this is activated, it should apply to all opening actions (launchers included)
And it should be an option. The fact that some users could have problems with double click shouldn't interfere with all others that don't

GUI improvement isn't an easy job. You can also comment and help on subjects I'm working on atm : improving launchers GUI and Using textview

fabounet, Thursday 30 September 2010 à 13:46


Subscription date : 30 November 2007
Messages : 17118
weather.com feature is now implemented, thanks for the idea

about double-click, here is the problem:

you get the following events from gtk (and from X):

click
release
click
double-click
release

so you will receive unwanted events (2 clicks and 2 release)
I've read in the GTK doc that this is normal and that no toolkit could prevent this.

so for the weather applet, I had to do a little hack for the double-click, since a single-click on a day opens the dialog: I close the dialog when I receive the double-click event, and prevent it from opening when I receive the 2nd click event.

the only workaround I see would be to add a delay when you receive a click, to see if a double-click event will come later, but it sounds like a hack (and it will make the click less responsiveness)
maybe the windows WM handles things differently ?
I'd be glad if someone knows a better workaround

Edit : the link to the GTK doc: http://library.gnome.org/devel/gtk-faq/stable/x544.html

Guest, Thursday 30 September 2010 à 16:58

fabounet, thank you very much for your dedication on this project and for including Weather.com and for explaining clearly about the handling of mouse events.

SQP :
You should tell me how the program could know that you will double click when he is opening the dialog for the first one (opening delay isn't a good one). Seeing the dialog appear for less than 1 sec and vanish isn't a big trouble.


I now understand the limitation. Adding a delay to check for a double-click event makes the click less responsive unlike something I don't see on a Windows dock. I tried AWN and Docky looking for clues to back me up regarding the handling of double-click but found no difference with Cairo. I was expecting Sound Control to have a flawless double-click response.
single-click: open volume slider popup
double-click: open volume slider popup...Oops!...close...open Sound Preferences window
or double-click: open Sound Preferences window
So it will be the same with the weather applet now that it is adding a double-click for Weather.com.

When a user double-clicked on the Trash applet, by mistake or not, what does the user do with two Trash windows?
a. Arrange the two Trash windows side-by-side then Restore a file/s on one and Empty trash on the other
Maybe navigate the second Trash window to another folder location.
b. Close the extra Trash window

I'm trying to make the sense of it. AWN, Docky and Cairo's Trash responds the same way when double-clicked. ObjectDock's RecycleBin behaves differently.

I have no problem with a Nautilus launcher opening two windows on a double-click (I take it you are referring to a 'My Computer' type Nautilus launcher where you navigate to various drives and folders). But to make the Trash applet act like the Nautilus launcher that opens multiple windows on multi-clicks, it alters its real purpose that is Restore items and Empty Trash.

fabounet, Friday 01 October 2010 à 12:17


Subscription date : 30 November 2007
Messages : 17118
I'll maybe try the delay trick for applets that could use it (so other icons won't be affected)
I agree that opening 2 trash windows is completely useless, so after the user has tried to double-click on the applet, he won't do it again
double-click to empty the trash is maybe dangerous (it's too close to the "open trash" action, and once you have emptied the trash, there is no come-back)

matttbe, Saturday 02 October 2010 à 16:51


Subscription date : 24 January 2009
Messages : 12573
@ fabounet: it seems you've made some modifications in CD's API but without any update in the trunk branch.
So I've reverted some modifications but you can do that:
bzr revert -r 1771 shortcuts/src/applet-drives.c weather/

fabounet, Monday 04 October 2010 à 14:56


Subscription date : 30 November 2007
Messages : 17118
yep thanks ! (and sorry for the mess )
I've implemented the delay workaround in the core, and the weather and alsamixer applets use it.
I'm waiting for your feedbacks now

Guest, Monday 04 October 2010 à 16:02

fabounet, if there is one word to describe your delay workaround, it is fabulous!

Double-click is very well done on the Weather applet. I didn't notice any lags. There is a problem though with the day sub-icon.
Example:
Double-clicking on Wednesday brings up the Thursday forecast
Double-clicking on Thursday brings up the Friday forecast

Are you reassigning the pop-up info as left-click on the main icon? So it will be a uniform behaviour with the day sub-icons.

I tested the sound applet (alsamixer?) and there is no change in behaviour. Double-click still opens the volume slider popup for a split second before opening the Sound Preferences.

SQP, Monday 04 October 2010 à 16:41


Subscription date : 03 July 2010
Messages : 1081
problem is there is only one way to handle it properly : use the environment double click timer, and that could lead to strange behaviour for some people.

that's why almost no buttons are set with two different actions on both events

Testing with alsamixer : I actually can get both windows opened with only two clicks.
And previously opened popup don't close anymore on mixer program opening

fabounet, Tuesday 05 October 2010 à 10:44


Subscription date : 30 November 2007
Messages : 17118
maybe a small mistake from me, of course I want to open the correct day on double-click as on single-click

@SQP: did you re-install the applet ? it seemed to work for me. the double-click delay is 250ms (this is the default value used in Gnome, and maybe the other desktops too)

SQP, Thursday 07 October 2010 à 16:42


Subscription date : 03 July 2010
Messages : 1081
yes it's working, but if you click just at the end of the delay, you can open both (at least I can, just make second click at the moment you think the dialog will pop)
and what if the double click delay is set to 0.5s or 1s (accessibility). For correct handling of such option, we need to be sure we'll get the correct value for every environment.
(and delay is visible in current window losing focus)

instead of this
single-click: open volume slider popup
double-click: open volume slider popup...Oops!...close...open Sound Preferences window


I see it more like this :
single-click: open volume slider popup
double-click: want more, ok. reverting first action and use second


which is the way I'm used to see buttons with two different actions handled. But as I can't find any other example in programs I use, I guess there is a reason. It's IMHO against correct GUI rules and should be used only in special cases : well defined harmless events, or set by user, who is the best to know what he prefers. Which lead to my first idea : selectable actions

(My first change would be to remove the sound popup, I have full control with mouse wheel. My second change would be to swap weather popup on first click, and weather.com on middle)

Guest, Thursday 07 October 2010 à 17:19

SQP :
swap weather popup on first click, and weather.com on middle


or user option for Weather.com button: double-click or middle

Guest, Wednesday 02 November 2011 à 22:34

Guest :
fabounet :
When left-clicking on the Weather applet

it opens the subdock with the forecast for the following days.
we could add it in the menu, but I don't see the point since the applet tells you almost all what you need.


Hovering the mouse on the Weather applet opens the subdock. Left-clicking does nothing but bounce the icon. I thought it would be a normal response to open the Weather.com site already pointing to the specified location since it gets its data from that site anyway. When you left-click on the Weather applet, it means you want to see more details and more view options on a webpage that you just don't get from individual balloon popups. What I'm wondering is why not? I'm using ObjectDock in Windows and its weather applet's left-click response is not just a bouncing icon.

I was able to properly configure the Mail applet to check my Hotmail account and use 'chromium-browser mail.live.com/?rru=inbox' as the mail application. Left-clicking on the Mail applet opens up my browser and it goes straight to my Hotmail Inbox (unless I previously signed out). My reaction to that was: Amazing! How convenient! And with the Webmail Ad Blocker extension it's even better. I'm hoping the Weather applet will offer a similar left-click convenience.

Thanks for responding.


!!! Don't forget the Anti-spam filter !!!

Applets | Applets

Subjects Author Language Messages Last message
[Locked] Weather: left-click on icon opens Weather.com in a browser [Bug #97]
Page : 1 2
Guest English 31 Guest [Read]
02 November 2011 à 22:34


Glx-Dock / Cairo-Dock List of forums Applets | Applets Weather: left-click on icon opens Weather.com in a browser 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.