Oops, here are the attachments.
--
Eric Gillespie, Jr. <*> [EMAIL PROTECTED]
"With sufficient thrust, pigs fly just fine. However, this is not
necessarily a good idea. It is hard to be sure where they are
going to land, and it could be dangerous sitting under them as
they fly overhead."
--RFC 1925
from gnome.ui import *
from gtk import *
w = GtkWindow(WINDOW_TOPLEVEL)
w.connect("delete-event", mainquit)
box = GtkVBox()
box.show()
w.add(box)
label = GtkLabel("crap")
label.show()
box.pack_start(label)
pixmap = GnomePixmap("1.xpm")
pixmap.show()
box.pack_start(pixmap)
w.show()
mainloop()
#include <gnome.h>
int
main(int argc, char **argv)
{
GtkWidget *w, *box, *label, *pixmap;
gnome_init("crap", "0", argc, argv);
w = gtk_window_new(GTK_WINDOW_TOPLEVEL);
gtk_signal_connect(GTK_OBJECT(w), "delete-event", gtk_main_quit, NULL);
box = gtk_vbox_new(0, 0);
gtk_widget_show(box);
gtk_container_add(GTK_CONTAINER(w), box);
label = gtk_label_new("crap");
gtk_widget_show(label);
gtk_box_pack_start(GTK_BOX(box), label, 0, 0, 0);
pixmap = gnome_pixmap_new_from_file("1.xpm");
gtk_widget_show(pixmap);
gtk_box_pack_start(GTK_BOX(box), pixmap, 0, 0, 0);
gtk_widget_show(w);
gtk_main();
return 0;
}
PGP signature