I checked the gtk status commands but I am not sure how to implement a custom icon.
Anyone ?? below is menu entry for a single item, note the GTK_STOCK_PREFERENCES that needs to be an icon file pointer.
iconw needs to be ' gtk_image_menu_item_set_image ' but how to point to the file?
Code: Select all
GtkWidget *menu, *menuitem, *label, *iconw ;
menu = gtk_menu_new();
label = gtk_image_menu_item_new_with_label("Set time and date");
iconw = gtk_image_new_from_stock(GTK_STOCK_PREFERENCES, GTK_ICON_SIZE_MENU);
gtk_image_menu_item_set_image(GTK_IMAGE_MENU_ITEM(label), iconw);
gtk_menu_shell_append(GTK_MENU_SHELL(menu), label);