On Thu, Jun 07, 2001 at 04:03:16PM +0200, Ronald Bultje wrote:
>
> Double oops. I forgot that. Let's try this one then:
Shuld work if the pixmap stuf is right (haven't used that).
But I would predere:
> #include "image.xpm"
> GtkWidget *create_pixmap() {
> GdkPixmap *pixmap;
> GdkBitmap *mask;
> pixmap = gdk_pixmap_colormap_create_from_xpm_d (NULL,
> gtk_widget_get_default_colormap(),
> &mask, NULL, (gchar **)image_xpm);
> return gtk_pixmap_new (pixmap, mask);
> }
> void test() {
> GtkWidget *w;
> w = create_pixmap();
> if (w == NULL) g_print("I am stupid\n");
> else g_print("I am not that stupid\n");
> }
It is not only a cuestion of taste, 99% of C-code use this
convention, so it is more consistent and easy to remember
and understand.
/Lars
_______________________________________________
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list