mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Even more Mac-i-ness
Move the About and Preferences menu item to the App menu. Switch the accelerator key to be Meta (i.e., Command) instead of Control This required a bit of restructuring of the code, but it's all for a good cause. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
53ecd2025d
commit
513df18f50
5 changed files with 46 additions and 23 deletions
|
|
@ -27,6 +27,14 @@ typedef enum {
|
|||
#define BOOL_TO_PTR(_cond) ((_cond) ? (void *)1 : NULL)
|
||||
#define PTR_TO_BOOL(_ptr) ((_ptr) != NULL)
|
||||
|
||||
#if defined __APPLE__
|
||||
#define CTRLCHAR "<Meta>"
|
||||
#define PREFERENCE_ACCEL "<Meta>,"
|
||||
#else
|
||||
#define CTRLCHAR "<Control>"
|
||||
#define PREFERENCE_ACCEL NULL
|
||||
#endif
|
||||
|
||||
extern void subsurface_open_conf(void);
|
||||
extern void subsurface_set_conf(char *name, pref_type_t type, const void *value);
|
||||
extern const void *subsurface_get_conf(char *name, pref_type_t type);
|
||||
|
|
@ -34,7 +42,8 @@ extern void subsurface_close_conf(void);
|
|||
|
||||
extern const char *subsurface_USB_name(void);
|
||||
extern const char *subsurface_icon_name(void);
|
||||
extern void subsurface_ui_setup(GtkSettings *settings, GtkWidget *menubar, GtkWidget *vbox);
|
||||
extern void subsurface_ui_setup(GtkSettings *settings, GtkWidget *menubar,
|
||||
GtkWidget *vbox, GtkUIManager *ui_manager);
|
||||
|
||||
extern const char *divelist_font;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue