aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2022-01-26 05:59:22 +0100
committerPřemysl Eric Janouch <p@janouch.name>2022-09-03 16:17:22 +0200
commitb8438df09c2622d34e79cd82feaf0f7b85d47603 (patch)
treebfb9372c8d288f54ed42934f5a6960f0baf19dbd
parente5fc58ef4581a2e678a534b39ebd18c925cb68a4 (diff)
downloadfiv-b8438df09c2622d34e79cd82feaf0f7b85d47603.tar.gz
fiv-b8438df09c2622d34e79cd82feaf0f7b85d47603.tar.xz
fiv-b8438df09c2622d34e79cd82feaf0f7b85d47603.zip
WIP: GtkApplication, for macOS global menu
WIP: This is painfully complicated.
-rw-r--r--fiv.c27
1 files changed, 27 insertions, 0 deletions
diff --git a/fiv.c b/fiv.c
index d58a5a5..b67febc 100644
--- a/fiv.c
+++ b/fiv.c
@@ -1829,6 +1829,33 @@ make_browser_sidebar(FivIoModel *model)
return sidebar;
}
+#if 0
+typedef struct {
+ const char *mnemonic;
+ GCallback callback;
+} Action;
+
+static Action actions_file[] = {
+ {"_New Window", G_CALLBACK(on_new_window)},
+ {"_Open", G_CALLBACK(on_open)},
+ {},
+ {"_Quit", G_CALLBACK(gtk_widget_destroy)},
+};
+
+static Action actions_go[] = {
+ {"_Back", G_CALLBACK(on_go_back)},
+ {"_Forward", G_CALLBACK(on_go_forward)},
+ {},
+ {"_Location...", G_CALLBACK(on_go_location)},
+};
+
+static Action actions_help[] = {
+ {"_Contents", G_CALLBACK(show_help_contents)},
+ {"_Keyboard Shortcuts", G_CALLBACK(show_help_shortcuts)},
+ {"_About", G_CALLBACK(show_about_dialog)},
+};
+#endif
+
static GtkWidget *
make_menu_bar(void)
{