balsa r7856 - in trunk: . src
- From: PeterB svn gnome org
- To: svn-commits-list gnome org
- Subject: balsa r7856 - in trunk: . src
- Date: Sun, 17 Feb 2008 22:39:16 +0000 (GMT)
Author: PeterB
Date: Sun Feb 17 22:39:16 2008
New Revision: 7856
URL: http://svn.gnome.org/viewvc/balsa?rev=7856&view=rev
Log:
add UI for find-in-message
Modified:
trunk/ChangeLog
trunk/src/message-window.c
Modified: trunk/src/message-window.c
==============================================================================
--- trunk/src/message-window.c (original)
+++ trunk/src/message-window.c Sun Feb 17 22:39:16 2008
@@ -58,6 +58,7 @@
static void copy_cb (GtkAction * action, MessageWindow * mw);
static void select_all_cb (GtkAction * action, gpointer);
+static void mw_find_in_message_cb (GtkAction * action, gpointer data);
static void mw_header_activate_cb (GtkAction * action, gpointer data);
@@ -251,6 +252,9 @@
G_CALLBACK(copy_cb)},
{"SelectAll", NULL, N_("Select _All"), "<control>A", NULL,
G_CALLBACK(select_all_cb)},
+ {"FindInMessage", NULL, N_("_Find in message"), "slash",
+ N_("Find a string in this message"),
+ G_CALLBACK(mw_find_in_message_cb)},
#ifdef HAVE_GTKHTML
{"ZoomIn", GTK_STOCK_ZOOM_IN, N_("Zoom _In"), "<control>plus",
N_("Increase magnification"), G_CALLBACK(mw_zoom_in_cb)},
@@ -339,6 +343,8 @@
" <menu action='EditMenu'>"
" <menuitem action='Copy'/>"
" <menuitem action='SelectAll'/>"
+" <separator/>"
+" <menuitem action='FindInMessage'/>"
" </menu>"
" <menu action='ViewMenu'>"
" <menuitem action='Wrap'/>"
@@ -883,6 +889,14 @@
}
static void
+mw_find_in_message_cb(GtkAction * action, gpointer data)
+{
+ MessageWindow *mw = (MessageWindow *) (data);
+
+ balsa_message_find_in_message(BALSA_MESSAGE(mw->bmessage));
+}
+
+static void
mw_set_selected(MessageWindow * mw, void (*select_func) (BalsaIndex *))
{
guint msgno;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]