setting image on any widget
- From: sphurti durgade <sphurti study yahoo com>
- To: gtk-app-devel-list gnome org
- Subject: setting image on any widget
- Date: Tue, 23 Oct 2007 08:43:58 -0700 (PDT)
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,
gtk_widget_get_default_colormap(),
&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
http://mail.yahoo.com
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]