English 中文(简体)
如何将“toggle-spacing”风格财产定在格特克加的GtkMenuItem?
原标题:How to set "toggle-spacing" style property to GtkMenuItem in gtk+?
  • 时间:2010-03-26 13:27:18
  •  标签:
  • gtk

我怎么能将“toggle-spacing”风格财产定在格特克加的GtkMenuItem?

我将5台GtkImageMenuItem(gtk_image_menu_item_new_with_label)添加到GtkMenu。 现在,我想在图像和标识之间提供间隔。

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
(source: flickr.com)

Thanks, KBalar

最佳回答
问题回答

暂无回答




相关问题
Pointers in Lisp?

I ve started learning Lisp recently and wanted to write a program which uses gtk interface. I ve installed lambda-gtk bindings (on CMUCL). I want to have putpixel/getpixel ability on a pixbuf. But I ...

In Gtk, how do I make a Button with just a stock icon?

I want to create a button with the stock "Remove" icon on it, but without the text "Remove". If I use Button button = new Button(Stock.Remove);, I get the opposite: just the text, and no icon. I will ...

Using GtkMenu in Gtk+-2.14.0

I am building an application which has GtkMenu widget. I am using Glade RAD tool to develop UI and while creating project in Glade I have specified version of GTK as 2.16 which supports GtkMenu and ...

Can you set the FileFilters for a Gtk Dialog in Glade?

In my code, I have lines like this: Builder builder = new Builder(); builder.AddFromFile(gladefile); FileChooserDialog dialog = (FileChooserDialog) builder.GetObject("dialog"); FileFilter[] ...

热门标签