mirror of
https://github.com/Gnucash/gnucash.git
synced 2024-11-24 01:46:38 -06:00
Refactor: hide implementation of GOOptionMenu (move from .h -> .c)
This commit is contained in:
parent
aa638ccc03
commit
5b80ae0f51
@ -50,6 +50,15 @@ enum
|
|||||||
|
|
||||||
static guint signals[LAST_SIGNAL] = { 0 };
|
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)
|
G_DEFINE_TYPE (GOOptionMenu, go_option_menu, GTK_TYPE_BUTTON)
|
||||||
|
|
||||||
GtkWidget*
|
GtkWidget*
|
||||||
|
@ -40,17 +40,6 @@ G_BEGIN_DECLS
|
|||||||
#define GO_TYPE_OPTION_MENU (go_option_menu_get_type ())
|
#define GO_TYPE_OPTION_MENU (go_option_menu_get_type ())
|
||||||
G_DECLARE_FINAL_TYPE (GOOptionMenu, go_option_menu, GO, OPTION_MENU, GtkButton)
|
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);
|
GtkWidget* go_option_menu_new(void);
|
||||||
void go_option_menu_set_menu(GOOptionMenu *option_menu, GtkWidget *menu);
|
void go_option_menu_set_menu(GOOptionMenu *option_menu, GtkWidget *menu);
|
||||||
void go_option_menu_set_history(GOOptionMenu *option_menu, GSList *selection);
|
void go_option_menu_set_history(GOOptionMenu *option_menu, GSList *selection);
|
||||||
|
Loading…
Reference in New Issue
Block a user