~mdw
/
disorder
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Tart up users window a bit
[disorder]
/
disobedience
/
menu.c
diff --git
a/disobedience/menu.c
b/disobedience/menu.c
index
f93e2f7
..
d2bb6a6
100644
(file)
--- a/
disobedience/menu.c
+++ b/
disobedience/menu.c
@@
-94,6
+94,13
@@
static void login(gpointer attribute((unused)) callback_data,
login_box();
}
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,
#if 0
/** @brief Called when the settings option is activated */
static void settings(gpointer attribute((unused)) callback_data,
@@
-123,6
+130,7
@@
void menu_update(int page) {
t->selectall_sensitive(tab));
gtk_widget_set_sensitive(selectnone_widget,
t->selectnone_sensitive(tab));
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 */
}
/** @brief Fetch version in order to display the about... popup */
@@
-213,7
+221,7
@@
GtkWidget *menubar(GtkWidget *w) {
static const GtkItemFactoryEntry entries[] = {
{
static const GtkItemFactoryEntry entries[] = {
{
- (char *)"/
File",
/* path */
+ (char *)"/
Server",
/* path */
0, /* accelerator */
0, /* callback */
0, /* callback_action */
0, /* accelerator */
0, /* callback */
0, /* callback_action */
@@
-221,16
+229,24
@@
GtkWidget *menubar(GtkWidget *w) {
0 /* extra_data */
},
{
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 *)"<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
{
#if 0
{
- (char *)"/
File/Settings",
/* path */
+ (char *)"/
Server/Settings",
/* path */
0, /* accelerator */
settings, /* callback */
0, /* callback_action */
0, /* accelerator */
settings, /* callback */
0, /* callback_action */
@@
-239,7
+255,7
@@
GtkWidget *menubar(GtkWidget *w) {
},
#endif
{
},
#endif
{
- (char *)"/
File
/Quit Disobedience", /* path */
+ (char *)"/
Server
/Quit Disobedience", /* path */
(char *)"<CTRL>Q", /* accelerator */
quit_program, /* callback */
0, /* callback_action */
(char *)"<CTRL>Q", /* accelerator */
quit_program, /* callback */
0, /* callback_action */