Re: Warning when making toolbars
- From: Raymond Wan <rwan cs mu oz au>
- To: Havoc Pennington <hp redhat com>
- Cc: gtk-list gnome org
- Subject: Re: Warning when making toolbars
- Date: Thu, 22 Mar 2001 19:43:00 +1100 (EST)
On 21 Mar 2001, Havoc Pennington wrote:
> Raymond Wan <rwan cs mu oz au> writes:
> > I have found out that I can get rid of this warning if I do a
> > gtk_widget_show_all to my main window just before this call. Even though
> > the examples I've seen do this, is there another way for me to create a
> > window, with its toolbars, and then display it to the user after
> > everything has been created?
> Use gdk_pixmap_colormap_create_from_xpm_d() and get the colormap
> from gtk_widget_get_colormap(window).
Hi Havoc,
Your solution worked! [As did Jeff's which made the window
realized!].
However, as I played around with it more, I realized that the
first argument to gdk_pixmap_colormap_create_from_xpm_d() and
gdk_pixmap_create_from_xpm_d () could have been one of many variables as
long as it was ___ -> window .
Well, to be precise, I use my toolbar-creating function
in more than one window of my program. Each window has its own toolbar.
I've noticed that as long as I add the icon to the correct toolbar using
gtk_toolbar_append_item (), I can put any of the following as the first
argument to gdk_pixmap_create_from_xpm_d ():
main_window -> window
main_window -> left_vbox -> window
even if this toolbar isn't going inside either of these containers
but in some child window of main_window... I'm not getting any warnings
or error messages...am I doing something wrong? What should the first
argument of these two functions be?
Quite strange [to me :) ] why it needs an argument here when it's
up to another function to actually place the icon in a toolbar (which in
turn will be placed in a widget).
Thank you!
Ray
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]