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,
t->selectall_sensitive(tab));
gtk_widget_set_sensitive(selectnone_widget,
t->selectnone_sensitive(tab));
+ /* TODO Users should only be sensitive if have RIGHT_ADMIN */
}
/** @brief Fetch version in order to display the about... popup */
static const GtkItemFactoryEntry entries[] = {
{
- (char *)"/File", /* path */
+ (char *)"/Server", /* path */
0, /* accelerator */
0, /* callback */
0, /* callback_action */
0 /* extra_data */
},
{
- (char *)"/File/Login", /* path */
+ (char *)"/Server/Login", /* path */
(char *)"<CTRL>L", /* accelerator */
login, /* callback */
0, /* callback_action */
0, /* item_type */
0 /* extra_data */
},
+ {
+ (char *)"/Server/Manage users", /* path */
+ 0, /* accelerator */
+ users, /* callback */
+ 0, /* callback_action */
+ 0, /* item_type */
+ 0 /* extra_data */
+ },
#if 0
{
- (char *)"/File/Settings", /* path */
+ (char *)"/Server/Settings", /* path */
0, /* accelerator */
settings, /* callback */
0, /* callback_action */
},
#endif
{
- (char *)"/File/Quit Disobedience", /* path */
+ (char *)"/Server/Quit Disobedience", /* path */
(char *)"<CTRL>Q", /* accelerator */
quit_program, /* callback */
0, /* callback_action */