Re: Toolbar: not able to display icons without text!



Hi,

Thanks for your answer.

Unfortunately, when I initialize the label to NULL with GtkToolbarStyle set to
GTK_TOOLBAR_ICONS, no toolbar at all is displayed.

I had already decided to give up this problem.  But afterwards, for other
reasons unrelated to this problem, I cut and pasted the very same code which
creates one of the two non-working toolbars in another context, for displaying
in the same window, linked with the same tooltips group, and now it works!
The only difference is that the toolbar is embedded in another container
(precisely:  a vbox in a frame in a vbox in the same window).  The other
problematic toolbar in this window still doesn't react to style setting.

There seems to be some GtkGremlins there.


Jim Parker a écrit :

G'Day !

I do not know if this is related or not ... but on my application I was not
able to display icons only if the text label was set to NULL.

Hope this helps.  Let me know what you find out.  Documentation implies the
field is ignored if toolbar set to GTK_TOOLBAR_ICONS

cheers,
JIm Parker

On Thu, 20 Dec 2001, Patrice St-Gelais wrote:
Date: Thu, 20 Dec 2001 21:58:30 -0500
To: gtk-app-devel-list gnome org
From: Patrice St-Gelais <patrice st-gelais oricom ca>
Sender: gtk-app-devel-list-admin gnome org
Subject: Toolbar: not able to display icons without text!

Hi,

I am not able to display icons without text in some of my toolbars.  The
result is GTK_TOOLBAR_BOTH whatever GtkToolbarStyle I use
(GTK_TOOLBAR_TEXT, GTK_TOOLBAR_ICONS).

In a first window, there is one toolbar which works as intended.  In a
second window, there are three toolbars.  Only the first one reacts to a
style change.

It doesn't seem to be related to the fact that I use radio buttons,
toggle buttons or simple buttons.  It doesn't matter if I set the style
when I create the toolbar or after, with gtk_toolbar_set_style. I cannot
say I have done extensive tests, though.

I am using Gtk+ 1.2.10.

I have found a message on the list about a similar problem in June 2000,
with no answer.  I also looked at the gtktoolbar.c code, but this is not
evident.

Does somebody have a hint?


Thanks!



_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]