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;
_______________________________________________
SVN-commits-list mailing list (read only)
http://mail.gnome.org/mailman/listinfo/svn-commits-list

Want to limit the commits to a few modules? Go to above URL, log in to edit 
your options and select the modules ('topics') you want.
Module maintainer? It is possible to set the reply-to to your development 
mailing list. Email [EMAIL PROTECTED] if interested.

Reply via email to