Create the pixbuf from empty.xpm rather than just calling

* e-combo-button.c (create_empty_pixmap_widget): Create the pixbuf
	from empty.xpm rather than just calling gdk_pixbuf_new(), which
	doesn't actually initialize the pixel data.

svn path=/trunk/; revision=21898
This commit is contained in:
Dan Winship
2003-07-23 13:49:30 +00:00
parent 3be35526b6
commit a1e92e17fa
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2003-07-23 Dan Winship <danw@ximian.com>
* e-combo-button.c (create_empty_pixmap_widget): Create the pixbuf
from empty.xpm rather than just calling gdk_pixbuf_new(), which
doesn't actually initialize the pixel data.
2003-07-11 Federico Mena Quintero <federico@ximian.com>
* e-dateedit.c (e_date_edit_mnemonic_activate): Added a handler

View File

@ -25,6 +25,7 @@
#endif
#include "e-combo-button.h"
#include "art/empty.xpm"
#include <gtk/gtkarrow.h>
#include <gtk/gtkhbox.h>
@ -89,7 +90,7 @@ create_empty_pixmap_widget (void)
GtkWidget *pixmap_widget;
GdkPixbuf *pixbuf;
pixbuf = gdk_pixbuf_new (GDK_COLORSPACE_RGB, TRUE, 8, 1, 1);
pixbuf = gdk_pixbuf_new_from_xpm_data ((const char **)empty_xpm);
pixmap_widget = create_pixmap_widget_from_pixbuf (pixbuf);