Am Mittwoch, den 22.02.2006, 12:45 +0100 schrieb Nikolaj Kiær Thygesen: > GtkWidget *button = gtk_button_new(); > gtk_button_set_image(GTK_BUTTON(button), > gtk_image_new_from_file(filename)); > gtk_widget_show(button); > > I can display the "gtk_image_new_from_file(filename)" widget on its > own, and it does contain my image (I've tried both line-art and > grey-scale images), but when "gtk_button_set_image()"-ing the image to > my button I get a silly little button probably about 5x5 pixels in > size with no image within!?
gtk_widget_show_all (button); /* might help. */ -- Christian Neumair <[EMAIL PROTECTED]>
_______________________________________________ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list