32 #import "CoreGTK/CGTKMenuButton.h" 50 return GTK_MENU_BUTTON([
self GOBJECT]);
55 return [[
CGTKWidget alloc] initWithGObject:(GObject *)gtk_menu_button_get_align_widget(GTK_MENU_BUTTON([
self GOBJECT]))];
60 return gtk_menu_button_get_direction(GTK_MENU_BUTTON([
self GOBJECT]));
65 return gtk_menu_button_get_menu_model(GTK_MENU_BUTTON([
self GOBJECT]));
70 return gtk_menu_button_get_popover(GTK_MENU_BUTTON([
self GOBJECT]));
75 return gtk_menu_button_get_popup(GTK_MENU_BUTTON([
self GOBJECT]));
80 return (gtk_menu_button_get_use_popover(GTK_MENU_BUTTON([
self GOBJECT])) ? YES : NO);
85 gtk_menu_button_set_align_widget(GTK_MENU_BUTTON([
self GOBJECT]), [alignWidget
WIDGET]);
88 -(void)setDirection:(GtkArrowType) direction
90 gtk_menu_button_set_direction(GTK_MENU_BUTTON([
self GOBJECT]), direction);
93 -(void)setMenuModel:(GMenuModel*) menuModel
95 gtk_menu_button_set_menu_model(GTK_MENU_BUTTON([
self GOBJECT]), menuModel);
100 gtk_menu_button_set_popover(GTK_MENU_BUTTON([
self GOBJECT]), [popover
WIDGET]);
105 gtk_menu_button_set_popup(GTK_MENU_BUTTON([
self GOBJECT]), [menu
WIDGET]);
108 -(void)setUsePopover:(BOOL) usePopover
110 gtk_menu_button_set_use_popover(GTK_MENU_BUTTON([
self GOBJECT]), (usePopover ? TRUE : FALSE));
id initWithGObject:(GObject *obj)