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 78212 - Icon-only items in a icon-and-text toolbar
Icon-only items in a icon-and-text toolbar
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Widget: Other
2.0.x
Other other
: Normal enhancement
: future
Assigned To: gtk-bugs
gtk-bugs
Depends on: 76109
Blocks:
 
 
Reported: 2002-04-09 19:08 UTC by kz
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: Unversioned Enhancement



Description kz 2002-04-09 19:08:41 UTC
Package: gtk+
Severity: enhancement
Version: 2.0.2
Synopsis: "has_label" property for toolbar items.
Bugzilla-Product: gtk+
Bugzilla-Component: gtk

Description:
even thou gnome2-ui-properties not yet support GTK_TOOLBAR_BOTH_HORIZ,
I believe it's fashionable feature and must be implemented.

then, I have a wonder is there some property to determine
which element has label, and which one has not.
'Cos not all items have label beside icon. only some important have.

but I couldn't find such property or function to set/unset.




------- Bug moved to this database by unknown@bugzilla.gnome.org 2002-04-09 15:08 -------

Reassigning to the default owner of the component, gtk-bugs@gtk.org.

Comment 1 Owen Taylor 2002-05-02 16:23:26 UTC
I don't really understand what this bug report is about.

Stock ids are used to both identify stock items and stock
images. If you want to find out whether there is a stock
item for a stock id, you can do that with:

gboolean gtk_stock_lookup     (const gchar         *stock_id,
                               GtkStockItem        *item);
Comment 2 kz 2002-05-02 17:08:12 UTC
look at evo's toolbar. it has both_horiz of style, ok?
in the evo toolbar, not all toolbar item has label.
but only some 'important' item has label.
I want the property which to judge has label, or not.

without "has_label" property, we will get mangnitude of toolbar width.
or is there some workaround already?

#76109 has fixed to support both_horiz for gtk2 toolbar,
but I didn't testify yet. waiting for rpm 0501 snapshot.
Comment 3 kz 2002-05-20 02:36:22 UTC
http://developer.gnome.org/doc/API/2.0/gtk/gtktoolbar.html#GTKTOOLBARC
HILD
a child of toolbar has three member of GtkWidget: widget, icon, label.
ATM I don't understand what the widget exactly is. I just expect 
widget is container icon and label.

well, let's suppose that we have implemented gboolean has_label 
member for GtkToolbarChild.

here I made a toolbar of a mail client, like evo, balsa, etc. (sure 
that toolbar_style is both_horiz.)
'check new mail' or 'compose new message' is busy feature. so I wanna 
give them label.
but other buttons such as 'reply to all' or 'move to trash' is not 
busy. so I won't give them label.
now, I will use the API of GtkToolbar like gtk_toolbar_child_has_label
(), to set the visibility of label member of GtkToolbarChild.

ok, do you understand what I mean?
Comment 4 Owen Taylor 2002-05-20 15:35:46 UTC
You want the ability to hide the label for stock toolbar items?

Comment 5 kz 2002-05-20 15:52:44 UTC
yeah, I think it's the way both_horiz should be implemented.
Comment 6 kz 2002-05-20 22:38:33 UTC
not just for stock items by stock_id, every other element, item, 
widget.
Comment 7 kz 2002-07-30 02:38:05 UTC
I've found bonobo-ui support the priority just exactly same with my
description.
dockitem has an attribute the name of "priority" with value "1" or has
not,
in ui.xml file.
Comment 8 Matthias Clasen 2003-09-27 00:30:17 UTC
GtkToolItem has an "is_important" property now.