#include <gtk/gtk.h>

/* XPM */
static char * scroll_xpm[] = {
"22 22 3 1",
" 	c None",
".	c #FFFFFF",
"+	c #000000",
"          .           ",
"         .+.          ",
"        .+++.         ",
"       .+++++.        ",
"      .+++++++.       ",
"       ..+++..        ",
"    .   .+++.   .     ",
"   .+.  .+++.  .+.    ",
"  .++....+++....++.   ",
" .+++++++++++++++++.  ",
".+++++++++++++++++++. ",
" .+++++++++++++++++.  ",
"  .++....+++....++.   ",
"   .+.  .+++.  .+.    ",
"    .   .+++.   .     ",
"        .+++.         ",
"       ..+++..        ",
"      .+++++++.       ",
"       .+++++.        ",
"        .+++.         ",
"         .+.          ",
"          .           "};

gint
main(int argc, char **argv)
{
  GdkPixmap *pixmap;
  GdkBitmap *mask;
  GtkWidget *widget;
  GtkStyle *style;
  GtkWidget *window;
  GtkWidget *hbox;
  GtkWidget  *image;

  gtk_init(&argc, &argv);

  window = gtk_window_new(GTK_WINDOW_TOPLEVEL);
  gtk_signal_connect(GTK_OBJECT(window), "destroy",
		     GTK_SIGNAL_FUNC(gtk_main_quit), NULL);

  hbox = gtk_hbox_new (FALSE, 8);
  gtk_container_add(GTK_CONTAINER(window), hbox);
 
  style = gtk_widget_get_style(window);
  pixmap = gdk_pixmap_colormap_create_from_xpm_d(NULL,
		gtk_widget_get_colormap(window), &mask,
		&style->bg[GTK_STATE_NORMAL], scroll_xpm);
  widget = gtk_pixmap_new(pixmap, mask);
  gtk_box_pack_start (GTK_BOX (hbox), widget, TRUE, TRUE, 0);

  image = gtk_image_new ();
  gtk_image_set_from_pixbuf(GTK_IMAGE(image), gdk_pixbuf_new_from_xpm_data (scroll_xpm));
  gtk_box_pack_start (GTK_BOX (hbox), image, TRUE, TRUE, 0);
    
  gtk_widget_show_all(window);

  gtk_main ();
  return 0;
}
