-static GtkWidget *xpm_label_box( gchar* xpm_filename,
- gchar *label_text )
-{
- GtkWidget *box;
- GtkWidget *label;
- GtkWidget *image;
-
- GdkPixbuf *pixbufP;
- //GError **error;
- /* Create box for image and label */
- box = gtk_hbox_new (FALSE, 0);
- gtk_container_set_border_width (GTK_CONTAINER (box), 1);
-
- /* Now on to the image stuff */
-
- pixbufP = gdk_pixbuf_new_from_xpm_data((const char **)&xpm_filename);
- image = gtk_image_new_from_pixbuf(pixbufP);
-
- /* Create a label for the button */
- label = gtk_label_new (label_text);
-
- /* Pack the image and label into the box */
- gtk_box_pack_start (GTK_BOX (box), image, FALSE, FALSE, 1);
- gtk_box_pack_start (GTK_BOX (box), label, FALSE, FALSE, 1);