setting the style of a menubar menu item ?
- From: Paul Barton-Davis <pbd Op Net>
- To: gtk-list redhat com
- Subject: setting the style of a menubar menu item ?
- Date: Tue, 7 Dec 1999 16:47:35 -0500
I have the following widget arrangement:
+-HBox----------------------------------------------+
|+---------------------+ +---------------------+|
|| | | ||
|| button | | menubar w/1 item ||
|+---------------------+ +---------------------+|
+---------------------------------------------------+
i want to set the font used by the menubar item to the same as the one
used by the button. normally, i use gtk_widget_set_name() to do this,
and then define the style in an rc file. in this case, both the button
and the widget will use the same style.
however, i can't figure out which widget i should be setting the name
of. i tried both the widget returned by gtk_item_factory_create_item()
and the one returned by gtk_item_factory_get_menubar_widget(), but
neither seems to result in the font changing. in both cases, the text
of the menubar item is in the font of the default style.
hints ?
--p
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]