Refactor: hide implementation of GOOptionMenu (move from .h -> .c)

This commit is contained in:
Richard Cohen 2023-06-26 12:26:56 +01:00
parent aa638ccc03
commit 5b80ae0f51
2 changed files with 9 additions and 11 deletions

View File

@ -50,6 +50,15 @@ enum
static guint signals[LAST_SIGNAL] = { 0 };
struct _GOOptionMenu
{
GtkButton button;
GtkMenuShell *menu;
GtkMenuItem *selected;
GtkLabel *button_label;
};
G_DEFINE_TYPE (GOOptionMenu, go_option_menu, GTK_TYPE_BUTTON)
GtkWidget*

View File

@ -40,17 +40,6 @@ G_BEGIN_DECLS
#define GO_TYPE_OPTION_MENU (go_option_menu_get_type ())
G_DECLARE_FINAL_TYPE (GOOptionMenu, go_option_menu, GO, OPTION_MENU, GtkButton)
struct _GOOptionMenu
{
GtkButton button;
/*< private >*/
GtkMenuShell *menu;
GtkMenuItem *selected;
GtkLabel *button_label;
};
GtkWidget* go_option_menu_new(void);
void go_option_menu_set_menu(GOOptionMenu *option_menu, GtkWidget *menu);
void go_option_menu_set_history(GOOptionMenu *option_menu, GSList *selection);