Im trying to use an image and a gtk_label as a tab_label.
I pack both into a hbox and put this hbox as the tablabel in the append_page
option:

[code]
        mainbook = gtk_notebook_new ();
        gtk_box_pack_start(GTK_BOX (vboxmain), mainbook, TRUE, TRUE, 0);
        gtk_notebook_set_tab_pos (GTK_NOTEBOOK (mainbook), GTK_POS_TOP);
        gtk_widget_show (mainbook);


     book_samba = gtk_label_new ("SAMBA");
     image1 =  g_object_new(GTK_TYPE_IMAGE,"file", "pics/ledred.png", NULL);
     samba_hbox = gtk_hbox_new(FALSE, 0);
     gtk_widget_show(samba_hbox);
     gtk_box_pack_start(GTK_BOX(samba_hbox), book_samba, TRUE, TRUE, 0);
     gtk_box_pack_start(GTK_BOX(samba_hbox), image1, TRUE, TRUE, 0)

gtk_notebook_append_page(mainbook, vbox1, samba_hbox);

[/code]

so what am I doing wrong, i also tried gtk_container_add() with the
same(none) result.

thx
_______________________________________________
gtk-app-devel-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Reply via email to