diff options
author | Christopher James Lahey <clahey@helixcode.com> | 2000-05-14 22:31:22 +0800 |
---|---|---|
committer | Chris Lahey <clahey@src.gnome.org> | 2000-05-14 22:31:22 +0800 |
commit | 32471accadcf2099f9d3567f51add9fab197ec24 (patch) | |
tree | 8b070bcbdbcd962de9016b0fceaa15ec45848310 /mail/message-list.c | |
parent | 623ba9a279db035339ac8ae5030683c1e79b8618 (diff) | |
download | gsoc2013-evolution-32471accadcf2099f9d3567f51add9fab197ec24.tar.gz gsoc2013-evolution-32471accadcf2099f9d3567f51add9fab197ec24.tar.zst gsoc2013-evolution-32471accadcf2099f9d3567f51add9fab197ec24.zip |
From widgets/e-table/ChangeLog
2000-05-14 Christopher James Lahey <clahey@helixcode.com>
* Implemented the feature where the ETable columns automatically
fill the given space.
* e-cell-text.c, e-cell-text.h: Moved #include
e-text-event-processor.h from the .h to the .c.
* e-table-col.c, e-table-col.h: Added an expansion variable, and
made it so that width isn't set by the programmer but instead by
the e-table-header.
* e-table-example-1.c, e-table-example-2.c, e-table-size-test.c,
test-check.c, test-cols.c, test-table.c: Fixed to handle new
ETable column resizing.
* e-table-group-container.c, e-table-group-container.h,
e-table-group-leaf.c, e-table-group-leaf.h, e-table-group.c,
e-table-group.h, e-table-item.c, e-table-item.h: Fixed these to do
a proper canvas reflow/update loop. Changed them to take a
minimum width and return a width and a height.
* e-table-header-item.c, e-table-header-item.h: Made this so that
it depends on e-table-header.c for deciding the actual size of
columns during resize (it was making incorrect decisions on its
own.)
* e-table-header.c, e-table-header.h: Changed this to make sure
that the sum of the widths of the columns was always as close as
possible to the width of the window. This is done by taking a
full width and having each of the columns have an "expansion"
field. This field is what makes each column have approximately
the same portion of its part of the screen that it used to.
* e-table.c: Changed this to set the width on the ETableHeader as
well as set the proper minimum width on the ETableGroup and get
the width and height it reports.
From addressbook/ChangeLog
2000-05-14 Christopher James Lahey <clahey@helixcode.com>
* backend/ebook/Makefile.am: Added libeutil for e-card's support
for categories.
* backend/ebook/e-card-list.c, backend/ebook/e-card-list.h: Added
a function to get the length.
* backend/ebook/e-card.c, backend/ebook/e-card.h: Added categories
support (accessible either as "categories" or "category_list".)
* contact-editor/Makefile.am: Added e-table and all of the
categories files.
* contact-editor/categories.glade,
contact-editor/categories-strings.h,
contact-editor/e-contact-editor-categories.c,
contact-editor/e-contact-editor-categories.h:
* contact-editor/contact-editor.glade,
contact-editor/e-contact-editor-strings.h: Rearranged this dialog.
* contact-editor/e-contact-editor.c: Rearranged dialog a bit.
Added opening of categories dialog.
* gui/component/Makefile.am: Rearranged libraries so that
libetable would be available for the contact editor categories
dialog.
* gui/component/addressbook.c: Fix for new ETable resizing. Make
contact editor dialog resizable.
* gui/minicard/Makefile.am: Added libetable contact editor
categories dialog.
* gui/minicard/e-minicard.c: Make contact editor dialog resizable.
From mail/ChangeLog
2000-05-14 Christopher James Lahey <clahey@helixcode.com>
* message-list.c: Updated to work with new ETable resizing.
svn path=/trunk/; revision=3027
Diffstat (limited to 'mail/message-list.c')
-rw-r--r-- | mail/message-list.c | 49 |
1 files changed, 24 insertions, 25 deletions
diff --git a/mail/message-list.c b/mail/message-list.c index 3380851c7a..8c28e51957 100644 --- a/mail/message-list.c +++ b/mail/message-list.c @@ -28,20 +28,20 @@ */ #define N_CHARS(x) (CHAR_WIDTH * (x)) -#define COL_ICON_WIDTH 16 -#define COL_CHECK_BOX_WIDTH 16 -#define COL_FROM_WIDTH N_CHARS(24) -#define COL_FROM_WIDTH_MIN 32 -#define COL_SUBJECT_WIDTH N_CHARS(30) -#define COL_SUBJECT_WIDTH_MIN 32 -#define COL_SENT_WIDTH N_CHARS(4) -#define COL_SENT_WIDTH_MIN 1 -#define COL_RECEIVE_WIDTH N_CHARS(20) -#define COL_RECEIVE_WIDTH_MIN 32 -#define COL_TO_WIDTH N_CHARS(24) -#define COL_TO_WIDTH_MIN 32 -#define COL_SIZE_WIDTH N_CHARS(6) -#define COL_SIZE_WIDTH_MIN 32 +#define COL_ICON_WIDTH (16) +#define COL_CHECK_BOX_WIDTH (16) +#define COL_FROM_EXPANSION (24.0) +#define COL_FROM_WIDTH_MIN (32) +#define COL_SUBJECT_EXPANSION (30.0) +#define COL_SUBJECT_WIDTH_MIN (32) +#define COL_SENT_EXPANSION (4.0) +#define COL_SENT_WIDTH_MIN (1) +#define COL_RECEIVE_EXPANSION (20.0) +#define COL_RECEIVE_WIDTH_MIN (32) +#define COL_TO_EXPANSION (24.0) +#define COL_TO_WIDTH_MIN (32) +#define COL_SIZE_EXPANSION (6.0) +#define COL_SIZE_WIDTH_MIN (32) #define PARENT_TYPE (bonobo_object_get_type ()) @@ -386,7 +386,6 @@ message_list_init_renderers (MessageList *message_list) message_list->render_priority = e_cell_checkbox_new (); } -#define CHAR_WIDTH 10 static void message_list_init_header (MessageList *message_list) { @@ -405,70 +404,70 @@ message_list_init_header (MessageList *message_list) message_list->table_cols [COL_ONLINE_STATUS] = e_table_col_new_with_pixbuf ( COL_ONLINE_STATUS, states_pixmaps [5].pixbuf, - COL_CHECK_BOX_WIDTH, COL_CHECK_BOX_WIDTH, + 0.0, COL_CHECK_BOX_WIDTH, message_list->render_online_status, g_int_compare, FALSE); message_list->table_cols [COL_MESSAGE_STATUS] = e_table_col_new_with_pixbuf ( COL_MESSAGE_STATUS, states_pixmaps [0].pixbuf, - COL_CHECK_BOX_WIDTH, COL_CHECK_BOX_WIDTH, + 0.0, COL_CHECK_BOX_WIDTH, message_list->render_message_status, g_int_compare, FALSE); message_list->table_cols [COL_PRIORITY] = e_table_col_new ( COL_PRIORITY, _("Priority"), - COL_CHECK_BOX_WIDTH, COL_CHECK_BOX_WIDTH, + 0.0, COL_CHECK_BOX_WIDTH, message_list->render_priority, g_int_compare, FALSE); message_list->table_cols [COL_ATTACHMENT] = e_table_col_new_with_pixbuf ( COL_ATTACHMENT, states_pixmaps [4].pixbuf, - COL_ICON_WIDTH, COL_ICON_WIDTH, + 0.0, COL_ICON_WIDTH, message_list->render_attachment, g_int_compare, FALSE); message_list->table_cols [COL_FROM] = e_table_col_new ( COL_FROM, _("From"), - COL_FROM_WIDTH, COL_FROM_WIDTH_MIN, + COL_FROM_EXPANSION, COL_FROM_WIDTH_MIN, message_list->render_text, g_str_compare, TRUE); message_list->table_cols [COL_SUBJECT] = e_table_col_new ( COL_SUBJECT, _("Subject"), - COL_SUBJECT_WIDTH, COL_SUBJECT_WIDTH_MIN, + COL_SUBJECT_EXPANSION, COL_SUBJECT_WIDTH_MIN, message_list->render_text, g_str_compare, TRUE); message_list->table_cols [COL_SENT] = e_table_col_new ( COL_SENT, _("Sent"), - COL_SENT_WIDTH, COL_SENT_WIDTH_MIN, + COL_SENT_EXPANSION, COL_SENT_WIDTH_MIN, message_list->render_text, g_str_compare, TRUE); message_list->table_cols [COL_RECEIVE] = e_table_col_new ( COL_RECEIVE, _("Receive"), - COL_RECEIVE_WIDTH, COL_RECEIVE_WIDTH_MIN, + COL_RECEIVE_EXPANSION, COL_RECEIVE_WIDTH_MIN, message_list->render_text, g_str_compare, TRUE); message_list->table_cols [COL_TO] = e_table_col_new ( COL_TO, _("To"), - COL_TO_WIDTH, COL_TO_WIDTH_MIN, + COL_TO_EXPANSION, COL_TO_WIDTH_MIN, message_list->render_text, g_str_compare, TRUE); message_list->table_cols [COL_SIZE] = e_table_col_new ( COL_SIZE, _("Size"), - COL_SIZE_WIDTH, COL_SIZE_WIDTH_MIN, + COL_SIZE_EXPANSION, COL_SIZE_WIDTH_MIN, message_list->render_text, g_str_compare, TRUE); |