Re: "Select All"
- From: Philip Van Hoof <freax pandora be>
- To: balsa-list gnome org
- Subject: Re: "Select All"
- Date: Sat, 3 Nov 2001 10:30:32 +0100
This patch adds "Select All" to the "Message" popup
diff -u balsa/src/main-window.c balsa-freax/src/main-window.c > balsa-cvs-`date +%Y-%m-%d`-freax-main-windows.c
--
Philip van Hoof aka freax (http://www.freax.eu.org)
irc: irc.openprojects.net mailto:freax @ pandora.be
--- balsa/src/main-window.c Fri Nov 2 16:01:22 2001
+++ balsa-freax/src/main-window.c Sat Nov 3 10:24:43 2001
@@ -150,7 +150,6 @@
/* callbacks */
static void send_outbox_messages_cb(GtkWidget *, gpointer data);
-static void send_receive_messages_cb(GtkWidget *, gpointer data);
static void new_message_cb(GtkWidget * widget, gpointer data);
static void replyto_message_cb(GtkWidget * widget, gpointer data);
@@ -317,8 +316,7 @@
BALSA_PIXMAP_MENU_SEND, 'T', GDK_CONTROL_MASK, NULL},
GNOMEUIINFO_SEPARATOR,
#define MENU_FILE_PRINT_POS 6
- { GNOME_APP_UI_ITEM, N_("_Print..."),
- N_("Print currently selected messages"),
+ { GNOME_APP_UI_ITEM, N_("_Print..."), NULL,
message_print_cb, NULL, NULL, GNOME_APP_PIXMAP_STOCK,
BALSA_PIXMAP_MENU_PRINT, 'P', GDK_CONTROL_MASK, NULL},
GNOMEUIINFO_SEPARATOR,
@@ -500,10 +498,20 @@
GNOME_APP_UI_ITEM, N_("_View Source..."),
N_("View source form of the message"),
view_msg_source_cb, NULL, NULL, GNOME_APP_PIXMAP_STOCK,
- GNOME_STOCK_MENU_BOOK_OPEN, 'v', GDK_CONTROL_MASK, NULL
+ BALSA_PIXMAP_MENU_SAVE, 'v', GDK_CONTROL_MASK, NULL
},
+ GNOMEUIINFO_SEPARATOR,
+#define MENU_MESSAGE_COPY_POS 11
+ GNOMEUIINFO_MENU_COPY_ITEM(copy_cb, NULL),
+#define MENU_MESSAGE_SELECT_ALL_POS 12
+ {
+ GNOME_APP_UI_ITEM, N_("_Select Text"),
+ N_("Select entire mail"),
+ select_all_cb, NULL, NULL, GNOME_APP_PIXMAP_NONE,
+ NULL, 'A', GDK_CONTROL_MASK, NULL
+ },
GNOMEUIINFO_SEPARATOR,
-#define MENU_MESSAGE_TRASH_POS 11
+#define MENU_MESSAGE_TRASH_POS 15
/* D */
{
GNOME_APP_UI_ITEM, N_("_Move to Trash"),
@@ -511,23 +519,23 @@
trash_message_cb, NULL, NULL, GNOME_APP_PIXMAP_STOCK,
GNOME_STOCK_MENU_TRASH, 'D', 0, NULL
},
-#define MENU_MESSAGE_DELETE_POS 12
+#define MENU_MESSAGE_DELETE_POS 16
{ GNOME_APP_UI_ITEM, N_("_Delete"),
N_("Delete the current message"),
delete_message_cb, NULL, NULL, GNOME_APP_PIXMAP_STOCK,
GNOME_STOCK_MENU_TRASH, 'D', GDK_CONTROL_MASK, NULL },
-#define MENU_MESSAGE_UNDEL_POS 13
+#define MENU_MESSAGE_UNDEL_POS 17
/* U */
{
GNOME_APP_UI_ITEM, N_("_Undelete"), N_("Undelete the message"),
undelete_message_cb, NULL, NULL, GNOME_APP_PIXMAP_STOCK,
GNOME_STOCK_MENU_UNDELETE, 'U', 0, NULL
},
-#define MENU_MESSAGE_TOGGLE_POS 14
+#define MENU_MESSAGE_TOGGLE_POS 18
/* ! */
GNOMEUIINFO_SUBTREE(N_("_Toggle"), message_toggle_menu),
GNOMEUIINFO_SEPARATOR,
-#define MENU_MESSAGE_STORE_ADDRESS_POS 16
+#define MENU_MESSAGE_STORE_ADDRESS_POS 19
/* S */
{
GNOME_APP_UI_ITEM, N_("_Store Address..."),
@@ -737,7 +745,6 @@
const char* icon_id;
void (*callback)(GtkWidget *, gpointer);
} callback_table[] = {
- { BALSA_PIXMAP_SEND_RECEIVE, send_receive_messages_cb },
{ BALSA_PIXMAP_RECEIVE, check_new_messages_cb },
{ BALSA_PIXMAP_TRASH, trash_message_cb },
{ BALSA_PIXMAP_NEW, new_message_cb },
@@ -1077,6 +1084,12 @@
gtk_widget_set_sensitive(edit_menu[MENU_EDIT_COPY_POS].widget, enable);
gtk_widget_set_sensitive(edit_menu[MENU_EDIT_SELECT_ALL_POS].widget,
enable);
+
+ gtk_widget_set_sensitive(message_menu[MENU_MESSAGE_COPY_POS].widget, enable);
+ gtk_widget_set_sensitive(message_menu[MENU_MESSAGE_SELECT_ALL_POS].widget,
+ enable);
+
+
}
/*
@@ -1741,21 +1754,6 @@
mailbox_check_func, NULL);
balsa_mblist_have_new(balsa_app.mblist);
#endif
-}
-
-static void
-send_receive_messages_cb(GtkWidget * widget, gpointer data)
-{
-#if ENABLE_ESMTP
- libbalsa_process_queue(balsa_app.outbox, balsa_app.encoding_style,
- balsa_app.smtp_server, balsa_app.smtp_authctx,
- balsa_app.smtp_tls_mode,
- balsa_app.send_rfc2646_format_flowed);
-#else
- libbalsa_process_queue(balsa_app.outbox, balsa_app.encoding_style,
- balsa_app.send_rfc2646_format_flowed);
-#endif
- check_new_messages_real(widget, data, TYPE_CALLBACK);
}
void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]