aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Winship <danw@src.gnome.org>2000-12-12 01:02:07 +0800
committerDan Winship <danw@src.gnome.org>2000-12-12 01:02:07 +0800
commitb7c314b29c684bd589796a1bc0374a2be9c84aa6 (patch)
tree2cb14903e4b520433b57792b232f63305007ca01
parent1443cce12e450e506891f355e7233d3c5afc13d2 (diff)
downloadgsoc2013-evolution-b7c314b29c684bd589796a1bc0374a2be9c84aa6.tar
gsoc2013-evolution-b7c314b29c684bd589796a1bc0374a2be9c84aa6.tar.gz
gsoc2013-evolution-b7c314b29c684bd589796a1bc0374a2be9c84aa6.tar.bz2
gsoc2013-evolution-b7c314b29c684bd589796a1bc0374a2be9c84aa6.tar.lz
gsoc2013-evolution-b7c314b29c684bd589796a1bc0374a2be9c84aa6.tar.xz
gsoc2013-evolution-b7c314b29c684bd589796a1bc0374a2be9c84aa6.tar.zst
gsoc2013-evolution-b7c314b29c684bd589796a1bc0374a2be9c84aa6.zip
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
-rw-r--r--mail/ChangeLog4
-rw-r--r--mail/folder-browser.c6
-rw-r--r--mail/message-list.h3
3 files changed, 12 insertions, 1 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index 184b72ead3..617e4c24f8 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -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.
diff --git a/mail/folder-browser.c b/mail/folder-browser.c
index a557f64a98..e2013bc52d 100644
--- a/mail/folder-browser.c
+++ b/mail/folder-browser.c
@@ -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);
}
diff --git a/mail/message-list.h b/mail/message-list.h
index d377384732..0cdf0f78ea 100644
--- a/mail/message-list.h
+++ b/mail/message-list.h
@@ -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;