Skip to content

Commit

Permalink
Refactor: hide implementation of GOOptionMenu (move from .h -> .c)
Browse files Browse the repository at this point in the history
  • Loading branch information
richardcohen committed Jun 27, 2023
1 parent aa638cc commit 5b80ae0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 11 deletions.
9 changes: 9 additions & 0 deletions borrowed/goffice/go-optionmenu.c
Original file line number Diff line number Diff line change
Expand Up @@ -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*
Expand Down
11 changes: 0 additions & 11 deletions borrowed/goffice/go-optionmenu.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 5b80ae0

Please sign in to comment.