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 61757 - StockItems needed for most icons
StockItems needed for most icons
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Widget: Other
1.3.x
Other Linux
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2001-10-04 20:37 UTC by Elliot Lee
Modified: 2011-02-04 16:09 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Here's a patch for the missing stock items (3.69 KB, patch)
2001-10-25 21:13 UTC, Matthias Clasen
none Details | Review
trash-adding patch (2.83 KB, patch)
2001-10-25 21:17 UTC, Matthias Clasen
none Details | Review

Description Elliot Lee 2001-10-04 20:37:33 UTC
stock icons such as GTK_STOCK_ADD and GTK_STOCK_DELETE need to have full
GtkStockItems created for them, so that they can be used in toolbars and
such....
Comment 1 Owen Taylor 2001-10-18 19:27:02 UTC
The idea here is that any stock icon where there is something
reasonable at all for the text should have a stock icon,
since it can't hurt and might help.
Comment 2 Matthias Clasen 2001-10-19 11:25:07 UTC
For the record, here is a list of all stock icons without text:

GTK_STOCK_ADD
GTK_STOCK_CDROM
GTK_STOCK_CONVERT
GTK_STOCK_DND
GTK_STOCK_DND_MULTIPLE
GTK_STOCK_EXECUTE
GTK_STOCK_FLOPPY
GTK_STOCK_GOTO_BOTTOM
GTK_STOCK_GOTO_FIRST
GTK_STOCK_GOTO_LAST
GTK_STOCK_GOTO_TOP
GTK_STOCK_GO_DOWN
GTK_STOCK_GO_UP
GTK_STOCK_INDEX
GTK_STOCK_ITALIC
GTK_STOCK_JUMP_TO
GTK_STOCK_MISSING_IMAGE
GTK_STOCK_REFRESH
GTK_STOCK_REMOVE
GTK_STOCK_SELECT_COLOR
GTK_STOCK_SELECT_FONT
GTK_STOCK_SORT_ASCENDING
GTK_STOCK_SORT_DESCENDING
GTK_STOCK_UNDELETE

Comment 3 Owen Taylor 2001-10-22 14:26:56 UTC
I think stock items should be added for:

GTK_STOCK_ADD
GTK_STOCK_CDROM
GTK_STOCK_CONVERT
GTK_STOCK_EXECUTE
GTK_STOCK_FLOPPY
GTK_STOCK_GOTO_BOTTOM
GTK_STOCK_GOTO_FIRST
GTK_STOCK_GOTO_LAST
GTK_STOCK_GOTO_TOP
GTK_STOCK_GO_DOWN
GTK_STOCK_GO_UP
GTK_STOCK_INDEX
GTK_STOCK_ITALIC
GTK_STOCK_JUMP_TO
GTK_STOCK_REFRESH
GTK_STOCK_REMOVE
GTK_STOCK_SELECT_COLOR
GTK_STOCK_SELECT_FONT
GTK_STOCK_SORT_ASCENDING
GTK_STOCK_SORT_DESCENDING
GTK_STOCK_UNDELETE

(So, not for DND, DND_MULTIPLE, MISSING_IMAGE)

CDROM, FLOPPY are questionable, but it doesn't hurt to
have stock items for them.

JUMP_TO is also questionable, but since it is an action,
if we are adding items for all the other actions, we should
add it is well.

The GOTO_* ones should probably "First, Last" etc as the
text, or at least "Go to First, Go to Last", since GOTO
isn't a word. GO_UP/GO_DOWN should probably get "Up" "Down" as the
text for consistency.
Comment 4 Skip Montanaro 2001-10-24 23:12:37 UTC
I think any icons that have active connotations should have stock items.  That might help to decide whether GTK_STOCK_ADD (yes) and GTK_STOCK_CDROM (no) should get stock items.

It occurred to me as I was working my way through the list, that the GTK_STOCK_DELETE icon is a bit misleading. It has an active name but an inactive icon.  GTK_STOCK_UNDELETE shows an open trashcan with an arrow pointing out of it.  I think GTK_STOCK_DELETE should be the similar but with an arrow pointing into the trashcan.  Perhaps the icon associated with GTK_STOCK_DELETE could be renamed to be GTK_STOCK_TRASH or GTK_STOCK_TRASHCAN (and not get a stock item).

While I have your attention ;-) I just noticed that the stock items demo doesn't always display the correct icon.  For example, if I select any of the five items that appear after GTK_STOCK-DIALOG-ERROR, the error icon is displayed in the right-hand panel instead of the icon displayed with the icon name.
Comment 5 Havoc Pennington 2001-10-25 00:57:55 UTC
The error icons in the demo are because those items don't exist at the
size the side image displays them at.
Comment 6 Matthias Clasen 2001-10-25 21:13:15 UTC
Created attachment 5911 [details] [review]
Here's a patch for the missing stock items
Comment 7 Matthias Clasen 2001-10-25 21:15:37 UTC
The following patch implements Skips idea to separate trashcan and
delete. It has to be completed by adding a stock_delete.png icon
to gtk/stock-icons. An inital approximation could be achieved by
cp stock_trash.png stock_delete.png

Comment 8 Matthias Clasen 2001-10-25 21:17:18 UTC
Created attachment 5912 [details] [review]
trash-adding patch
Comment 9 Owen Taylor 2001-10-31 22:01:21 UTC
Please go ahead and commit the addition of the missing icons.

I don't think separation of trash-can and delete makes sense
because I don't think a trash can icon as distinct from
a delete icon is useful enough to add.

If the delete icon isn't good enough, then we should fix it.