[PATCH] Re: Some suggestions
- From: Peter Bloomfield <PeterBloomfield MindSpring com>
- To: Balsa list <balsa-list gnome org>
- Subject: [PATCH] Re: Some suggestions
- Date: Mon, 22 Oct 2001 16:29:30 -0400
On 2001.10.22 10:52 Petter Sundlöf wrote:
...
> But still, shouldn't double clicking a message in the Drafts folder
> bring up an editable message? Am I wrong in seeing that as logic?
The logic seems irrefutable to me. Patch attached (may need more
testing).
Peter
diff -Nur --exclude=CVS --exclude=gtkhtml balsa-cvs/src/balsa-index.c balsa-temp/src/balsa-index.c
--- balsa-cvs/src/balsa-index.c Mon Oct 22 08:16:12 2001
+++ balsa-temp/src/balsa-index.c Mon Oct 22 15:51:51 2001
@@ -1206,7 +1206,24 @@
if (on_message &&
(message = (LibBalsaMessage*)gtk_clist_get_row_data(clist, row))) {
if (event && event->button == 1 && event->type == GDK_2BUTTON_PRESS) {
- message_window_new (message);
+ /* double click on a message means open a message window,
+ * unless we're in the draftbox, in which case it means open
+ * a sendmsg window */
+ if (bindex->mailbox_node->mailbox == balsa_app.draftbox) {
+ /* the simplest way to get a sendmsg window would be:
+ * balsa_message_continue(widget, (gpointer) bindex);
+ * but it doesn't work--the selection info seems to
+ * become invisible
+ *
+ * instead we'll just use the guts of
+ * balsa_message_continue: */
+ BalsaSendmsg *sm =
+ sendmsg_window_new(widget, message, SEND_CONTINUE);
+ gtk_signal_connect(GTK_OBJECT(sm->window), "destroy",
+ GTK_SIGNAL_FUNC
+ (sendmsg_window_destroy_cb), NULL);
+ } else
+ message_window_new (message);
}
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]