Re: notebook: pixmaps not shown in last page




Rasca Gmelch <thron@gmx.de> writes:

> hi owen,
> 
> > > 	ftp://ftp.komm.hdk-berlin.de/pub/linux/X11/xap-0.6.3.tar.gz
> > > 
> > > relevant source files for "xap": xap.c, xap_gui.c gtk_dlg.c, uri.c, io.c
> > > 
> > > xap is a small application panel program with text or pixmap labeled
> > > buttons.. ignore the other included program (xtree).
> > 
> > OK. I compile this, but I get only a single page, with buttons
> > and no icons. Do I have to make install?
> 
> - first add a new page (context menu while the mouse button is
>   over the page label) 
> 
> - to create new buttons just DND an executable from the filemanager
>   e.g. xtree to the label of a notebook page (or use netscape, go
>   to file:/usr/bin/X11 and DND e.g. xterm)
> 
> - to define a pixmap use the context menu of the button which
>   you want assign a pixmap and then you can DND a pixmap file -
>   e.g. one of the examples included - to the entry of the dialog,
>   or if you don't like DND type in the path/filename..

GLE is quite a good for tool for debugging these types 
of problems.

 $ ./xap --gtk-module=gle

 - Hit Ctrl-alt-tab to bring up GLE

 - Right click on the main window and select Tree View.
   (You may have to use the "Selector" button to select your window
   first)

 - Find the relevant Pixmap in the tree view

 - Right click on it and select "Widget Editor"

 - Go to the "GtkWidget" page.

Hmmm, the visible checkbutton is not checked. I guess the 
widget was never shown.

Why it was never shown is your problem ;-) But I suspect
it's because the only thing that is showing the pixmaps
is the call to gtk_notebook_show_all() when the
next page is being added, so the pixmaps on the last
page are not shown.

Regards,
                                        Owen



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