tags:

views:

41

answers:

1

Hi,

How can I set "toggle-spacing" style property to GtkMenuItem in gtk+?

I have added five GtkImageMenuItem(gtk_image_menu_item_new_with_label) to GtkMenu. Now I want to provide spacing between Image and label of this GtkImageMenuItem.

There is a style property (toggle-spacing) in GtkMenuItem to provide spacing between image and label. How can I use this property?

I want to give alternate colors to each GtkMenuItem. How it is possible? Kinda menu I want to create is shown in this image.

alt text

Thanks, KBalar

A: 

Setting Properties.

To make the row colors alternate use gtk_tree_view_set_rules_hint.

DoR