X-Git-Url: https://git.distorted.org.uk/~mdw/disorder/blobdiff_plain/fb009628568c52bfc82b1ed3ebf438762096307b..1bcd69c4cfd2f1080014b792a1dc15ed1883f1c5:/disobedience/menu.c diff --git a/disobedience/menu.c b/disobedience/menu.c index 80e33cd..ab32f36 100644 --- a/disobedience/menu.c +++ b/disobedience/menu.c @@ -94,6 +94,22 @@ static void login(gpointer attribute((unused)) callback_data, login_box(); } +/** @brief Called when the login option is activated */ +static void users(gpointer attribute((unused)) callback_data, + guint attribute((unused)) callback_action, + GtkWidget attribute((unused)) *menu_item) { + manage_users(); +} + +#if 0 +/** @brief Called when the settings option is activated */ +static void settings(gpointer attribute((unused)) callback_data, + guint attribute((unused)) callback_action, + GtkWidget attribute((unused)) *menu_item) { + popup_settings(); +} +#endif + /** @brief Update menu state * * Determines option sensitivity according to the current tab and adjusts the @@ -219,6 +235,24 @@ GtkWidget *menubar(GtkWidget *w) { 0, /* item_type */ 0 /* extra_data */ }, + { + (char *)"/File/Users", /* path */ + 0, /* accelerator */ + users, /* callback */ + 0, /* callback_action */ + 0, /* item_type */ + 0 /* extra_data */ + }, +#if 0 + { + (char *)"/File/Settings", /* path */ + 0, /* accelerator */ + settings, /* callback */ + 0, /* callback_action */ + 0, /* item_type */ + 0 /* extra_data */ + }, +#endif { (char *)"/File/Quit Disobedience", /* path */ (char *)"Q", /* accelerator */