Re: putting icon on GtkImageMenuItem tutorial(ette)
- From: Mick <bareman tpg com au>
- To: "gtk-app-devel-list gnome org" <gtk-app-devel-list gnome org>
- Subject: Re: putting icon on GtkImageMenuItem tutorial(ette)
- Date: Thu, 24 Jun 2010 17:39:51 +1000
On Wed, 23 Jun 2010 11:19:58 +0200
Mike Massonnet <mmassonnet gmail com> wrote:
2010/6/23 Mick <bareman tpg com au>:
can any one point me to a tutorial or clear example code that covers
placing an icon on a GtkImageMenuItem with label. I've been trying
all day and when I cast my way out of type mismatches I keep getting
segfaults.
GtkWidget *image = gtk_image_new_...
GtkWidget *mi = gtk_image_menu_item_new...
gtk_image_menu_item_set_image (GTK_IMAGE_MENU (mi), image);
thanks, it did help once I made a little change:
gtk_image_menu_item_set_image (GTK_IMAGE_MENU '_ITEM' (mi), image);
mik
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]