Re: gtknotebook & pixmap
- From: Neil Bird <neil fnxweb com>
- To: GTK Mailing List <gtk-list gnome org>
- Cc: mrzali <syed mimos my>
- Subject: Re: gtknotebook & pixmap
- Date: Thu, 28 Feb 2002 11:57:46 +0000
Around about 28/02/02 09:48, mrzali scribbled ...
How i want to attach pixmap into gtk-notebook-tab?
As far i know we can only set label on it.
Any suggestion.
Do it in glade!
Here's an edited example of how glade does it:
notebook1 = gtk_notebook_new ();
empty_notebook_page = gtk_vbox_new (FALSE, 0);
gtk_widget_show (empty_notebook_page);
gtk_container_add (GTK_CONTAINER (notebook1), empty_notebook_page);
pixmap1 = create_pixmap (window1, NULL);
gtk_widget_show (pixmap1);
gtk_notebook_set_tab_label (GTK_NOTEBOOK (notebook1),
gtk_notebook_get_nth_page (GTK_NOTEBOOK (notebook1), 0), pixmap1);
Nothing to stop you putting a container in the tab that contains
pixmap+text, or pretty well anything, I guess.
--
[neil fnx ~]# rm -f .signature
[neil fnx ~]# ls -l .signature
ls: .signature: No such file or directory
[neil fnx ~]# exit
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]