fix for message index window display problems
- From: wmorgan syntony org
- To: balsa-list gnome org
- Subject: fix for message index window display problems
- Date: Fri, 18 Dec 1998 12:14:37 -0500
Clicking on folder names in the folder index doesn't bring up their windows
for me. This turns out to be because the events sent are GDK_BUTTON_RELEASE
rather than GDK_BUTTONx_PRESS. This seems strange to me, but if other people
are having the same problem, here's a simple fix:
--- cut here ---
diff -u -r1.172 main-window.c
--- src/main-window.c 1998/12/15 15:41:15 1.172
+++ src/main-window.c 1998/12/18 17:05:45
@@ -861,7 +861,7 @@
if (!mblw)
return;
- if (event && event->button == 1 && event->type == GDK_2BUTTON_PRESS)
+ if (event && event->button == 1 && event->type == GDK_BUTTON_RELEASE)
{
index_child = index_child_new (mblw->mdi, mailbox);
@@ -889,7 +889,7 @@
gtk_ctree_node_set_row_style (GTK_CTREE (bmbl), row, NULL);
}
- if (event && event->button == 3)
+ if (event && event->button == 3 && event->type == GDK_BUTTON_RELEASE)
{
gtk_menu_popup (GTK_MENU (mblist_create_menu (GTK_CTREE (bmbl), mailbox)), NULL, NULL, NULL, NULL, event->button, event->time);
}
--- cut here ---
I changed the bottom line for consistency's sake; it's not absolutely
necessary.
--
William
wmorgan@syntony.org
PGP signature
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]