GNOME Bugzilla – Bug 78212
Icon-only items in a icon-and-text toolbar
Last modified: 2004-12-22 21:47:04 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.
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);
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.
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?
You want the ability to hide the label for stock toolbar items?
yeah, I think it's the way both_horiz should be implemented.
not just for stock items by stock_id, every other element, item, widget.
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.
GtkToolItem has an "is_important" property now.