setting image on any widget

Hi All
i want to set image on any widget including container.
eg. we have  function in GtkButton to set image on button.
i.e void gtk_button_set_image(GtkButton *button,GtkWidget *image);
similarly i want to set image on other widgets (like hscale,vbox,notebook with tab )

i am setting  the background  image as :

    GtkWidget* window;  
    GdkPixmap *pixmap;
    GdkBitmap *mask;

window = gtk_window_new(GTK_WINDOW_TOPLEVEL);
pixmap = gdk_pixmap_colormap_create_from_xpm_d (NULL,
                               &mask, NULL,bg_xpm);

     gtk_widget_realize (window);
     gdk_window_set_back_pixmap (window->window, pixmap,FALSE);
     gtk_widget_show (window);       
   please  help me   

Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]