GNOME Bugzilla – Bug 395927
Move Cancel button to status bar?
Last modified: 2013-09-13 00:49:28 UTC
This is just an idea I was playing around with today. I'm not a UI designer so I'm not sure if it's a good one, but it works. I added a small cancel button to the ETaskBar widget that emits a "cancel" signal when clicked. It appears on the right side of the status bar when a new task is added, and disappears after all tasks are removed. The intent was to replace the Cancel button in the mailer's toolbar. I see a few advantages with this approach: - The cancel button is placed closer to the thing that you're cancelling (at least as the UI represents it), rather than on the opposite side of the window. - The cancel button is only visible when there's something to cancel. - It frees up some space on the mailer's toolbar.
Created attachment 80146 [details] Screenshot Cancel button has moved from the toolbar to the lower right corner of the window, next to the operation to cancel.
Created attachment 80147 [details] [review] Proposed patch
Created attachment 80181 [details] [review] Revised patch Other components that use ETaskBar may not want to display a cancel button, so this revision adds an "enable-cancel-button" property that defaults to FALSE. Also cleaned up the code a bit, and added a finalize() method to the widget.
hum, this patch crashed on me with 2.9.91.
Seems to be working okay for me from a fresh Subversion build. Can you post a backtrace?
will do after fosdem, I recompiled to test other patches and it takes a while for me to build :)
I'm not quite sure if this is a good idea. With high screen resolution and maximized evolution window, the cancel button is kind of lost down there in the corner. I would rather suggest to put it on the left side, next to the disconnect-button.
Matthew, I had floated a similiar idea on e-h during the early 2.10 cycle, in lines for fixing the intrusive error dialogs. It adds the 'x' button to each tasks. Does this add 'x' to each tasks? I feel this is the way to go. In case of error, keep a '!' and a prelit/inverse the color to indicate a error in the task.
I think I remember you mentioning that. No, this isn't that sophisticated (see the screenshot in comment #1). I was just playing around with moving the current toolbar's Cancel button down to the status bar, so there's a stronger correspondence between the Cancel button and what the button cancels. The behavior of the button is exactly the same. And it's also only visible when there's an active task.
Srini, I'm not going to fight too hard for this one if it steps on bigger and better plans of yours. Your idea sounds more interesting anyway, so unless you want to use my idea in the interim I'm okay with closing this. The patch here might at least serve as a useful reference.
Matthew, I would like to do it in the way I proposed. I dont want to introduce stuff which we would anyway change. Also if we push this means that you gotto do some rework, bug fixes etc. Lets save your effort too :) for other things.