Skip to content

Commit 5b80ae0

Browse files
committed
Refactor: hide implementation of GOOptionMenu (move from .h -> .c)
1 parent aa638cc commit 5b80ae0

File tree

2 files changed

+9
-11
lines changed

2 files changed

+9
-11
lines changed

borrowed/goffice/go-optionmenu.c

+9
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,15 @@ enum
5050

5151
static guint signals[LAST_SIGNAL] = { 0 };
5252

53+
struct _GOOptionMenu
54+
{
55+
GtkButton button;
56+
57+
GtkMenuShell *menu;
58+
GtkMenuItem *selected;
59+
GtkLabel *button_label;
60+
};
61+
5362
G_DEFINE_TYPE (GOOptionMenu, go_option_menu, GTK_TYPE_BUTTON)
5463

5564
GtkWidget*

borrowed/goffice/go-optionmenu.h

-11
Original file line numberDiff line numberDiff line change
@@ -40,17 +40,6 @@ G_BEGIN_DECLS
4040
#define GO_TYPE_OPTION_MENU (go_option_menu_get_type ())
4141
G_DECLARE_FINAL_TYPE (GOOptionMenu, go_option_menu, GO, OPTION_MENU, GtkButton)
4242

43-
struct _GOOptionMenu
44-
{
45-
GtkButton button;
46-
47-
/*< private >*/
48-
49-
GtkMenuShell *menu;
50-
GtkMenuItem *selected;
51-
GtkLabel *button_label;
52-
};
53-
5443
GtkWidget* go_option_menu_new(void);
5544
void go_option_menu_set_menu(GOOptionMenu *option_menu, GtkWidget *menu);
5645
void go_option_menu_set_history(GOOptionMenu *option_menu, GSList *selection);

0 commit comments

Comments
 (0)