|
From: CORE C. L. <cor...@li...> - 2000-11-26 09:29:44
|
Core CVS committal
Author : rbdpngn
Project : core
Module : src
Modified Files:
account.h panes.c
Log Message:
Correct items now shown in account window list. Need to get the widths set to a better default, and maybe just have them auto-resize.
===================================================================
RCS file: /cvsroot/corem/core/src/account.h,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -3 -r1.11 -r1.12
--- account.h 2000/11/26 07:51:21 1.11
+++ account.h 2000/11/26 09:29:43 1.12
@@ -59,7 +59,7 @@
/* Set the full name of account ac to the string path */
int account_set_full_name(Account * ac, char *fullname);
/* Return a malloc()'d copy of the full name in account ac. */
-char *account_get_full_name(Account * ac);
+char *account_get_fullname(Account * ac);
/* Return the number of messages in the account */
int account_get_num_messages(Account * ac);
===================================================================
RCS file: /cvsroot/corem/core/src/panes.c,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -3 -r1.13 -r1.14
--- panes.c 2000/11/26 07:51:21 1.13
+++ panes.c 2000/11/26 09:29:43 1.14
@@ -350,9 +350,9 @@
text = (char **) g_malloc(4 * sizeof(char *));
text[0] = account_get_name(mbox);
- text[1] = g_strdup("Test 1");
- text[2] = g_strdup("Test 2");
- text[3] = g_strdup("Test 3");
+ text[1] = account_get_fullname(mbox);
+ text[2] = account_get_address(mbox);
+ text[3] = account_get_path(mbox);
gtk_clist_insert(GTK_CLIST(clist), i, text);
gtk_clist_set_row_data_full(GTK_CLIST(clist), i,
@@ -370,6 +370,11 @@
if (text[3])
g_free(text[3]);
g_free(text);
+
+ gtk_clist_optimal_column_width(GTK_CLIST(clist), 0);
+ gtk_clist_optimal_column_width(GTK_CLIST(clist), 1);
+ gtk_clist_optimal_column_width(GTK_CLIST(clist), 2);
+ gtk_clist_optimal_column_width(GTK_CLIST(clist), 3);
hbox = gtk_hbox_new(FALSE, 0);
gtk_box_pack_start(GTK_BOX(main_vbox), hbox, FALSE, FALSE, 0);
|