1 2@c %start of fragment 3 4@deftp Class <gtk-menu-tool-button> 5Derives from @code{<gtk-tool-button>}. 6 7This class defines the following slots: 8 9@table @code 10@item menu 11The dropdown menu 12 13@end table 14 15@end deftp 16 17@defop Signal <gtk-menu-tool-button> show-menu 18@end defop 19 20@deffn Function gtk-menu-tool-button-new (icon_widget@tie{}@code{<gtk-widget>}) (label@tie{}@code{mchars}) @result{}@tie{} (ret@tie{}@code{<gtk-tool-item>}) 21Creates a new @code{<gtk-menu-tool-button>} using @var{icon-widget} as icon and 22@var{label} as label. 23 24@table @var 25@item icon-widget 26a widget that will be used as icon widget, or @samp{@code{#f}} 27 28@item label 29a string that will be used as label, or @samp{@code{#f}} 30 31@item ret 32the new @code{<gtk-menu-tool-button>} 33 34@end table 35 36Since 2.6 37 38@end deffn 39 40@deffn Function gtk-menu-tool-button-new-from-stock (stock_id@tie{}@code{mchars}) @result{}@tie{} (ret@tie{}@code{<gtk-tool-item>}) 41Creates a new @code{<gtk-menu-tool-button>}. The new 42@code{<gtk-menu-tool-button>} will contain an icon and label from the stock item 43indicated by @var{stock-id}. 44 45@table @var 46@item stock-id 47the name of a stock item 48 49@item ret 50the new @code{<gtk-menu-tool-button>} 51 52@end table 53 54Since 2.6 55 56@end deffn 57 58@deffn Function gtk-menu-tool-button-set-menu (self@tie{}@code{<gtk-menu-tool-button>}) (menu@tie{}@code{<gtk-widget>}) 59@deffnx Method set-menu 60Sets the @code{<gtk-menu>} that is popped up when the user clicks on the arrow. 61If @var{menu} is NULL, the arrow button becomes insensitive. 62 63@table @var 64@item button 65a @code{<gtk-menu-tool-button>} 66 67@item menu 68the @code{<gtk-menu>} associated with @code{<gtk-menu-tool-button>} 69 70@end table 71 72Since 2.6 73 74@end deffn 75 76@deffn Function gtk-menu-tool-button-get-menu (self@tie{}@code{<gtk-menu-tool-button>}) @result{}@tie{} (ret@tie{}@code{<gtk-widget>}) 77@deffnx Method get-menu 78Gets the @code{<gtk-menu>} associated with @code{<gtk-menu-tool-button>}. 79 80@table @var 81@item button 82a @code{<gtk-menu-tool-button>} 83 84@item ret 85the @code{<gtk-menu>} associated with @code{<gtk-menu-tool-button>} 86 87@end table 88 89Since 2.6 90 91@end deffn 92 93 94@c %end of fragment 95