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 85666 - [ui-review][doc] Empty Trash dialog issues
[ui-review][doc] Empty Trash dialog issues
Status: RESOLVED FIXED
Product: nautilus
Classification: Core
Component: Trash
1.1.x
Other All
: Normal normal
: ---
Assigned To: Nautilus Maintainers
Nautilus Maintainers
Depends on:
Blocks: 82707
 
 
Reported: 2002-06-17 18:02 UTC by Calum Benson
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
patch to fix it (4.50 KB, patch)
2002-07-08 19:43 UTC, Damon Chaplin
none Details | Review
Revised patch, with modal dialog again (3.22 KB, patch)
2002-07-10 18:41 UTC, Damon Chaplin
none Details | Review
patch to add eel_gtk_button_new_with_stock_icon() to eel (2.48 KB, patch)
2002-07-11 20:41 UTC, Damon Chaplin
none Details | Review
New nautilus patch using new eel function (2.58 KB, patch)
2002-07-11 20:43 UTC, Damon Chaplin
none Details | Review

Description Calum Benson 2002-06-17 18:02:13 UTC
The following issues came out of the recent ui-review and are recommended
for fixing prior to GNOME 2.0.1:

- Empty Trash needs icon for 'Empty' button
- Empty Trash should be non-modal
- s/Empty Trash?/Empty Trash in window title
- 'Empty' button needs a mnemonic
- Default button should be 'Empty'
Comment 1 Luis Villa 2002-06-18 20:54:36 UTC
Adding keywords to all ui-review bugs in one mass change, sorry for the spam. It
would be very nice if the folks doing UI review stuff would be sure to add
'PATCH' to the bugs that have those. I'm (tentatively) not marking these 'high'
but the release team [having gotten approval from the docs and i18n people]
would like to see these in ASAP on the 2.0.1 branches, so that i18n folks can
start translating at their convenience.
Comment 2 Luis Villa 2002-06-28 16:53:14 UTC
After¦some¦discussion¦with¦the¦release¦team,¦in¦order¦to¦get¦these¦in¦to¦2.0.1
and¦to¦not¦make¦the¦translators¦shoot¦us,¦these¦need¦to¦get¦in¦ASAP¦:)¦I'm
marking¦them¦'urgent'/2.0.1¦as¦a¦result;¦it¦would¦be¦greatly¦appreciated¦if
maintainers¦of¦the¦affected¦components¦can¦work¦on¦getting¦these¦patched¦ASAP¦so
that¦the¦translators¦can¦get¦cracking¦on¦them¦for¦the¦next¦release.¦[Subject,¦of
course,¦to¦maintainer¦agreement¦with¦the¦goals¦of¦the¦review¦:)¦
Comment 3 Luis Villa 2002-07-02 15:14:44 UTC
[Search for 'luis spamming' to catch every instance of this email.]
In order to better track Sun's bugs for Sun and Ximian's internal use, I've
added a temporary keyword to some bugs. I apologize for the spam, and for the
use of an additional keyword, but this is the best way for Sun to track 'it's'
bugs without interfering with the community's own triage and bug behavior. If
you have any questions or objections, please drop me a note at louie@ximian.com
or email bugmaster@gnome.org for more open discussion.
Comment 4 Damon Chaplin 2002-07-03 19:04:29 UTC
For the icon Calum says we should use the stock delete icon.
Comment 5 Damon Chaplin 2002-07-08 19:43:17 UTC
Created attachment 9721 [details] [review]
patch to fix it
Comment 6 Damon Chaplin 2002-07-08 19:47:36 UTC
Unfortunately I had to create the dialog by hand to add the Delete icon
to the button and sort out the default button.

I changed it to be non-modal, though I'm not sure if we want to do that.
There was a big comment about why it was modal, but I'm not sure if it
is still relevant. (You can see it in the patch.)
Comment 7 Calum Benson 2002-07-09 10:15:53 UTC
Hmm, I guess if the reasons in the comment for making it modal still
apply then we ought to leave it modal.  I'd guess it's fairly unlikely
that the user will select 'Empty Trash' and then wander off and do
something else before they've confirmed anyway... and if they did want
to, having to click an extra button first isn't really going to hurt.
Comment 8 Damon Chaplin 2002-07-10 18:41:12 UTC
Created attachment 9783 [details] [review]
Revised patch, with modal dialog again
Comment 9 Damon Chaplin 2002-07-10 18:44:28 UTC
There were problems with the non-modal dialog because the parent view
could be destroyed, so I switched back to modal.

Comment 10 Alexander Larsson 2002-07-11 09:22:27 UTC
Hmmm. Perhaps the dialog creation should be split out into a separate
function in eel.
Comment 11 Damon Chaplin 2002-07-11 19:57:48 UTC
I don't know. The dialog isn't a very general one.

Or did you mean the button creation code? Yes, that would make a
useful utility function.
How about eel_gtk_button_new_with_stock_icon () ?
It would do most of this, except setting CAN_DEFAULT and showing
the button.

+
button = gtk_button_new ();
+
GTK_WIDGET_SET_FLAGS (button, GTK_CAN_DEFAULT);
+
label = gtk_label_new_with_mnemonic (_("_Empty"));
+
gtk_label_set_mnemonic_widget (GTK_LABEL (label), GTK_WIDGET (button));
+
image = gtk_image_new_from_stock (GTK_STOCK_DELETE,
+
				  GTK_ICON_SIZE_BUTTON);
+
hbox = gtk_hbox_new (FALSE, 2);
+
align = gtk_alignment_new (0.5, 0.5, 0.0, 0.0);
+
gtk_box_pack_start (GTK_BOX (hbox), image, FALSE, FALSE, 0);
+
gtk_box_pack_end (GTK_BOX (hbox), label, FALSE, FALSE, 0);
+
gtk_container_add (GTK_CONTAINER (button), align);
+
gtk_container_add (GTK_CONTAINER (align), hbox);
+
gtk_widget_show_all (button);

Comment 12 Damon Chaplin 2002-07-11 20:41:15 UTC
Created attachment 9816 [details] [review]
patch to add eel_gtk_button_new_with_stock_icon() to eel
Comment 13 Damon Chaplin 2002-07-11 20:43:48 UTC
Created attachment 9817 [details] [review]
New nautilus patch using new eel function
Comment 14 Alexander Larsson 2002-07-12 12:23:48 UTC
Looks good. Please commit.
Comment 15 Damon Chaplin 2002-07-12 18:39:51 UTC
Patch applied, but didn't make it non-modal.
Leaving open for docs people.
Comment 16 Eugene O'Connor 2002-08-06 10:42:58 UTC
This change doesn't require any changes to the User Guide docs.
Comment 17 Luis Villa 2002-08-06 19:15:01 UTC
Closed.