Ignore double-clicks on "active" columns (the ones where clicking does
* folder-browser.c (on_double_click): Ignore double-clicks on "active" columns (the ones where clicking does something beyond "select"), fixing bug #811 svn path=/trunk/; revision=6910
This commit is contained in:
@ -9,7 +9,9 @@
|
||||
rather than bonobo methods to destroy the message list.
|
||||
(on_right_click, on_double_click): These are being attached to the
|
||||
ETable directly now, so fix the first argument (which isn't being
|
||||
used anyway, but...)
|
||||
used anyway, but...). Ignore double-clicks on "active" columns
|
||||
(the ones where clicking does something beyond "select"), fixing
|
||||
bug #811, which is what got me started on this to begin with...
|
||||
(folder_browser_gui_init): simplify now that MessageList itself is
|
||||
a widget. Also use message_list->table rather than
|
||||
e_table_scrolled_get_table.
|
||||
|
||||
@ -633,6 +633,12 @@ etable_key (ETable *table, int row, int col, GdkEvent *ev, FolderBrowser *fb)
|
||||
static void
|
||||
on_double_click (ETable *table, gint row, gint col, GdkEvent *event, FolderBrowser *fb)
|
||||
{
|
||||
/* Ignore double-clicks on columns where single-click doesn't
|
||||
* just select.
|
||||
*/
|
||||
if (MESSAGE_LIST_COLUMN_IS_ACTIVE (col))
|
||||
return;
|
||||
|
||||
view_msg (NULL, fb);
|
||||
}
|
||||
|
||||
|
||||
@ -38,6 +38,9 @@ enum {
|
||||
COL_COLOUR,
|
||||
};
|
||||
|
||||
#define MESSAGE_LIST_COLUMN_IS_ACTIVE(col) (col == COL_MESSAGE_STATUS || \
|
||||
col == COL_FLAGGED)
|
||||
|
||||
struct _MessageList {
|
||||
ETableScrolled parent;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user