13#ifndef __GUI_WIDGETS_BUTTON_WITH_MENU_H__
14#define __GUI_WIDGETS_BUTTON_WITH_MENU_H__
16#include "gtk_wrapper.h"
18#define BUTTON_WITH_MENU_WIDGET_TYPE (button_with_menu_widget_get_type ())
21 button_with_menu_widget,
23 BUTTON_WITH_MENU_WIDGET,
35typedef struct _ButtonWithMenuWidget
37 GtkBox parent_instance;
45 GtkMenuButton * menu_btn;
49} ButtonWithMenuWidget;
52button_with_menu_widget_set_menu_model (
53 ButtonWithMenuWidget * self,
54 GMenuModel * gmenu_model);
61 ButtonWithMenuWidget * self,
62 GtkPopover * popover);
76 ButtonWithMenuWidget * self,
78 GMenuModel * gmenu_model,
81 const char * btn_tooltip_text,
82 const char * menu_tooltip_text);
85button_with_menu_widget_new (
void);
87static inline GtkMenuButton *
88button_with_menu_widget_get_menu_button (ButtonWithMenuWidget * self)
90 return self->menu_btn;