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 338289 - The "new list" button/widget is ugly and weird
The "new list" button/widget is ugly and weird
Status: RESOLVED DUPLICATE of bug 552010
Product: evolution
Classification: Applications
Component: Shell
2.4.x (obsolete)
Other All
: Normal enhancement
: ---
Assigned To: Srinivasa Ragavan
Evolution QA team
Depends on:
Blocks:
 
 
Reported: 2006-04-13 02:09 UTC by Johan Mårtenson
Modified: 2008-10-22 19:14 UTC
See Also:
GNOME target: ---
GNOME version: Unversioned Enhancement


Attachments
The "new" widget in evolution (1.95 KB, image/png)
2006-04-13 12:49 UTC, Johan Mårtenson
Details
The firefox history browsing widget. (998 bytes, image/png)
2006-04-13 12:50 UTC, Johan Mårtenson
Details
A mockup of what the new button could look like (1.67 KB, image/png)
2006-04-14 12:36 UTC, Johan Mårtenson
Details
Button implementation (1.13 KB, text/plain)
2008-02-06 21:59 UTC, Thomas D Ahle
Details
Screenshot of the python button (5.11 KB, image/png)
2008-02-06 21:59 UTC, Thomas D Ahle
Details
Looking a little better (With relief) (1.68 KB, text/plain)
2008-02-07 14:39 UTC, Thomas D Ahle
Details
Screenshto of new version (5.21 KB, image/png)
2008-02-07 14:41 UTC, Thomas D Ahle
Details
Button implementation with out relief (used by the toolbar) (1.17 KB, text/x-python)
2008-02-07 14:42 UTC, Thomas D Ahle
Details

Description Johan Mårtenson 2006-04-13 02:09:33 UTC
It would be nice if evolution instead would use the button firefox uses for
browsing back and forward in the history.
Comment 1 André Klapper 2006-04-13 10:21:17 UTC
johan, can you please elaborate a bit? i don't get at all what you are talking about. which "new list" button? where?
Comment 2 Johan Mårtenson 2006-04-13 12:49:18 UTC
Created attachment 63376 [details]
The "new" widget in evolution
Comment 3 Johan Mårtenson 2006-04-13 12:50:31 UTC
Created attachment 63377 [details]
The firefox history browsing widget.
Comment 4 André Klapper 2006-04-14 12:05:00 UTC
ok. but not *instead* of the new button, no way. this would break the workflow of thousands of people. so where's your point? evo should provide a history to go back and forth? what would you expect of that, where is the advantage towards now?
Comment 5 Johan Mårtenson 2006-04-14 12:36:05 UTC
Created attachment 63454 [details]
A mockup of what the new button could look like
Comment 6 Johan Mårtenson 2006-04-14 12:38:37 UTC
I am not proposing to change the functionality of the new button. I'm simply
suggesting to change the appearance of the new button to match that of the
firefox history button. This would make the new button look like one button
with an arrow on it, instead of two different buttons that are kind of grouped
together. I'm attaching a mockup of what this might look like.
Comment 7 André Klapper 2006-04-18 12:04:52 UTC
ahh... sorry, i totally misunderstood you.
okay, then i guess that this bug report is a duplicate of bug 327330, bug 307776, bug 262210, bug 254503, bug 252814 or bug 245342? :-)
(i myself don't know if those bug reports are *all* the same, but they *could* be, that's why i'm writing them down here)
Comment 8 Harish Krishnaswamy 2006-04-18 13:40:40 UTC
Srini, can you comment on this please ?
Comment 9 Srinivasa Ragavan 2006-04-19 03:12:37 UTC
It is a bug, either with up or with the theme. IIRC dobey/someone patched up Industrial theme to make it look like toolbutton. I guess Firefox uses XUL with Gtk backend to do this, and we have hacked up to add this button. Ideally the toolkit should have a support for such a button IMO. If so then all the issues will be solved.
Comment 10 Johan Mårtenson 2007-01-09 20:20:33 UTC
The new-button looks a lot better in evo 2.8.1 so this bug should probably be closed.
Comment 11 Thomas D Ahle 2007-10-06 10:49:15 UTC
I think the problem is, that gtk needs a way to remove left or right borders from a button.
If this was added, two buttons could be placed next to each other, but have the shape of one.
Comment 12 Thomas D Ahle 2008-02-06 21:59:13 UTC
Created attachment 104593 [details]
Button implementation

I've written a button which I think is useable.
It's written in pygtk as I don't speak C, but it demonstrates the idea.
Comment 13 Thomas D Ahle 2008-02-06 21:59:42 UTC
Created attachment 104594 [details]
Screenshot of the python button
Comment 14 Srinivasa Ragavan 2008-02-07 04:01:17 UTC
Thomas, does it have the same functionality as the current new button ?

Clicking New would launch the default menu item. and clicking 'v' would show a dropdown menu?

Comment 15 Thomas D Ahle 2008-02-07 11:02:13 UTC
It is only a proof of concept, but if you run it, you see that it actually contains of two buttons stacked on top of each other.

You can asign different actions to them. One can open the dialog, one can bring up the menu.
Comment 16 Thomas D Ahle 2008-02-07 14:39:43 UTC
Created attachment 104630 [details]
Looking a little better (With relief)
Comment 17 Thomas D Ahle 2008-02-07 14:41:45 UTC
Created attachment 104632 [details]
Screenshto of new version
Comment 18 Thomas D Ahle 2008-02-07 14:42:48 UTC
Created attachment 104634 [details]
Button implementation with out relief (used by the toolbar)

Btw. as it is python files, you can just download and run them to view the button in action.
Comment 19 Thomas D Ahle 2008-02-07 14:58:00 UTC
It current'y assumes the button border is 3px, as the gtk.Button.props.inner_border.width property is not readable from python - http://bugzilla.gnome.org/show_bug.cgi?id=484030 but if translating to C this could be made more nicely.
Comment 20 Karl Lattimer 2008-02-07 15:11:52 UTC
http://bugzilla.gnome.org/show_bug.cgi?id=375313 is closely related to this bug.
Comment 21 Srinivasa Ragavan 2008-02-08 05:46:53 UTC
Karl, I think GtkMenuToolButton is the one nautilus uses and I somehow feel that the "Back"+"v" and "Forward"+"v" are totally disconnected. They dont feel/appear like together. Neither the mouseover shades them collectively. I understand the shading thing you mentioned. I'm wondering what can be a better soln.

Thomas, I'm not sure, if I can write a new button from the pycode. I donno much python also and not much Gtk+ internals :(
Comment 22 Thomas D Ahle 2008-02-08 11:52:48 UTC
> I'm not sure, if I can write a new button from the pycode. I donno much
> python also and not much Gtk+ internals :(

Well, it shouldn't be too hard. It is simply a gtk.Layout with two buttons. The v button is placed on top of the normal button.

In pseudo (pygtk) it looks something like this:

layout = gtk.Layout()
button = gtk.Button(...)
button.set_relief(gtk.RELIEF_NONE)
layout.put(button, 0, 0)

arrow_button = gtk.Button()
arrow_button.add(gtk.Arrow(gtk.ARROW_DOWN, gtk.SHADOW_NONE))
arrow_button.set_relief(gtk.RELIEF_NONE)

balloc = button.get_allocation()
aballoc = arrow_button.get_allocation()
# Make the size of the arrow_button fit perfectly to the button
arrow_button.set_size_request(aballoc.width, balloc.height)
# Extend button so there is space for the arrow_button.
button.set_size_request(balloc.width+aballoc.width, balloc.height)
button.props.xalign = 0
# Add the arrow_button where it belongs
layout.put(arrow_button, balloc.width, 0)

The actual code is cluttered a little by the widgets size not being determined before show.

Also, in combobutton_relief.py, a custom button is created for the v, which doesn't draw the left most 3 pixels. For this version I don't see any use in evolution though, as toolbars are always RELIEF_NONE.
Comment 23 Thomas D Ahle 2008-02-11 10:09:05 UTC
I just noticed, that in emails with attachments, the down most widget is a button with an v. In this button however, the v button isn't pressed when you click it.
Comment 24 Srinivasa Ragavan 2008-02-11 10:20:21 UTC
You are right. Because, both has different actions. May be I'm wrong. Once is a inline viewer and at times.. that is even disabled.
Comment 25 Thomas D Ahle 2008-02-11 15:30:38 UTC
Well the first one has an action on the main button and a list and the v.
The seccond one has an action and changes image on the main button and a list on the v.

There is no reason the v button on the seccond button shouldn't be "pressable" but only "clickable". That is no press animation.
Comment 26 Matthew Barnes 2008-10-22 19:14:20 UTC
Folding this into bug #552010.

Once BonoboUI is dropped, we can use a standard GtkMenuToolButton, which I'm already doing on my "kill-bonobo" branch.  See [1] for more details.

[1] http://www.go-evolution.org/KillBonobo

*** This bug has been marked as a duplicate of 552010 ***