Hi there
I had done something similar but adding a label+button. Below you can
find the code I used.
hbox2 = gtk_hbox_new (FALSE, 4);
gtk_notebook_set_tab_label (GTK_NOTEBOOK (notebook1),
gtk_notebook_get_nth_page (GTK_NOTEBOOK (notebook1), 0), hbox2);
label4 = gtk_label_new (_("Population 1"));
gtk_box_pack_start (GTK_BOX (hbox2), label4, FALSE, FALSE, 0);
button2 = gtk_button_new ();
gtk_box_pack_start (GTK_BOX (hbox2), button2, FALSE, FALSE, 0);
gtk_widget_set_size_request (button2, 16, 16);
gtk_button_set_relief (GTK_BUTTON (button2), GTK_RELIEF_NONE);
gtk_button_set_focus_on_click (GTK_BUTTON (button2), FALSE);
image2 = gtk_image_new_from_stock ("gtk-close", GTK_ICON_SIZE_MENU);
gtk_container_add (GTK_CONTAINER (button2), image2);
gtk_widget_show_all (hbox2);
Hope it helps
Regards
Hazael
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list