xpm in place of button...
- From: "Hari Prasad Nadig" <hpnadig myrealbox com>
- To: gtk-list gnome org
- Subject: xpm in place of button...
- Date: Mon, 02 Jun 2003 11:02:08 -0600
GtkWidget *pixmap, *fixed;
GdkPixmap *ic_pixmap;
GdkBitmap *mask;
GtkStyle *style;
GdkGC *gc;
style = gtk_widget_get_default_style();
gc = style->black_gc;
ic_pixmap = gdk_pixmap_create_from_xpm_d( window->window, &mask,&style->bg[GTK_STATE_NORMAL],ic_xpm );
pixmap = gtk_pixmap_new( ic_pixmap, mask );
fixed = gtk_fixed_new();
gtk_widget_set_usize( fixed, 80, 105 );
gtk_fixed_put( GTK_FIXED(fixed), pixmap, 0, 0 );
gtk_table_attach_defaults (GTK_TABLE(*table_ics),fixed, 8, 10, 5, 8);
gtk_widget_show( pixmap);
gtk_widget_show( fixed );
This is my code. It generates a transparent image alright. But what do I do to give it a functionality of button?
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]