chiark
/
gitweb
/
~mdw
/
disorder
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
6f23269
)
Tart up users window a bit
author
Richard Kettlewell
<rjk@greenend.org.uk>
Sat, 19 Apr 2008 20:07:08 +0000
(21:07 +0100)
committer
Richard Kettlewell
<rjk@greenend.org.uk>
Sat, 19 Apr 2008 20:07:08 +0000
(21:07 +0100)
disobedience/users.c
patch
|
blob
|
blame
|
history
diff --git
a/disobedience/users.c
b/disobedience/users.c
index 3e6cc868bf575ff9f608c6359b6971265086c3f7..f5ab89bb02946175c5a1ca3b8d8f0085f9e6392e 100644
(file)
--- a/
disobedience/users.c
+++ b/
disobedience/users.c
@@
-557,13
+557,13
@@
static void users_selection_changed(GtkTreeSelection attribute((unused)) *treese
/** @brief Table of buttons below the user list */
static struct button users_buttons[] = {
{
/** @brief Table of buttons below the user list */
static struct button users_buttons[] = {
{
-
"Add user"
,
+
GTK_STOCK_ADD
,
users_add,
"Create a new user",
0
},
{
users_add,
"Create a new user",
0
},
{
-
"Delete user"
,
+
GTK_STOCK_REMOVE
,
users_delete,
"Delete a user",
0
users_delete,
"Delete a user",
0
@@
-573,7
+573,7
@@
static struct button users_buttons[] = {
/** @brief Pop up the user management window */
void manage_users(void) {
/** @brief Pop up the user management window */
void manage_users(void) {
- GtkWidget *tree, *buttons, *hbox, *vbox, *vbox2;
+ GtkWidget *tree, *buttons, *hbox, *
hbox2, *
vbox, *vbox2;
GtkCellRenderer *cr;
GtkTreeViewColumn *col;
GtkCellRenderer *cr;
GtkTreeViewColumn *col;
@@
-626,19
+626,22
@@
void manage_users(void) {
users_makedetails("", "", "", "",
DETAIL_VISIBLE,
DETAIL_VISIBLE);
users_makedetails("", "", "", "",
DETAIL_VISIBLE,
DETAIL_VISIBLE);
- /* TODO apply button is much too wide right now... */
g_signal_connect(users_apply_button, "clicked",
G_CALLBACK(users_apply), NULL);
g_signal_connect(users_apply_button, "clicked",
G_CALLBACK(users_apply), NULL);
- vbox2 = gtk_vbox_new(FALSE, 2);
+ hbox2 = gtk_hbox_new(FALSE, 0);
+ gtk_box_pack_end(GTK_BOX(hbox2), users_apply_button,
+ FALSE/*expand*/, FALSE, 0);
+
+ vbox2 = gtk_vbox_new(FALSE, 0);
gtk_box_pack_start(GTK_BOX(vbox2), users_details_table,
TRUE/*expand*/, TRUE/*fill*/, 0);
gtk_box_pack_start(GTK_BOX(vbox2), users_details_table,
TRUE/*expand*/, TRUE/*fill*/, 0);
- gtk_box_pack_start(GTK_BOX(vbox2),
users_apply_button
,
+ gtk_box_pack_start(GTK_BOX(vbox2),
hbox2
,
FALSE/*expand*/, FALSE, 0);
/* User details are to the right of the list */
hbox = gtk_hbox_new(FALSE, 2);
FALSE/*expand*/, FALSE, 0);
/* User details are to the right of the list */
hbox = gtk_hbox_new(FALSE, 2);
- gtk_box_pack_start(GTK_BOX(hbox), vbox, FALSE/*expand*/, FALSE,
0
);
- gtk_box_pack_start(GTK_BOX(hbox), vbox2, TRUE/*expand*/, TRUE/*fill*/,
0
);
+ gtk_box_pack_start(GTK_BOX(hbox), vbox, FALSE/*expand*/, FALSE,
2
);
+ gtk_box_pack_start(GTK_BOX(hbox), vbox2, TRUE/*expand*/, TRUE/*fill*/,
2
);
gtk_container_add(GTK_CONTAINER(users_window), hbox);
}
gtk_container_add(GTK_CONTAINER(users_window), hbox);
}