aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorJon Trowbridge <trow@ximian.com>2001-07-24 05:46:09 +0800
committerJon Trowbridge <trow@src.gnome.org>2001-07-24 05:46:09 +0800
commit7db908f5f385bfaea6c962eac7fa84145743a5c1 (patch)
treebd355d8f183c3b5b22c9acebc8c1f4deba98f214 /mail
parentae75558c213056b70bab3e81f608e96691dc33ba (diff)
downloadgsoc2013-evolution-7db908f5f385bfaea6c962eac7fa84145743a5c1.tar.gz
gsoc2013-evolution-7db908f5f385bfaea6c962eac7fa84145743a5c1.tar.zst
gsoc2013-evolution-7db908f5f385bfaea6c962eac7fa84145743a5c1.zip
Carefully check for NULL everywhere, and do the right thing if the message
2001-07-23 Jon Trowbridge <trow@ximian.com> * mail-search.c (begin_cb): Carefully check for NULL everywhere, and do the right thing if the message we are currently looking at gets expunged. (Bug #4870) svn path=/trunk/; revision=11321
Diffstat (limited to 'mail')
-rw-r--r--mail/ChangeLog8
-rw-r--r--mail/mail-search.c18
2 files changed, 24 insertions, 2 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index 20ccbcdbc5..073171617a 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -1,3 +1,9 @@
+2001-07-23 Jon Trowbridge <trow@ximian.com>
+
+ * mail-search.c (begin_cb): Carefully check for NULL everywhere,
+ and do the right thing if the message we are currently looking
+ at gets expunged. (Bug #4870)
+
2001-07-23 Jason Leach <jleach@ximian.com>
[Bug #5225: No UI way to mark as unimportant]
@@ -10,7 +16,7 @@
* mail-callbacks.c (mark_as_unimportant): Simple function that's
the callback for these new menu items.
-
+
2001-07-22 Ettore Perazzoli <ettore@ximian.com>
* component-factory.c (remove_folder): Updated to get a @type
diff --git a/mail/mail-search.c b/mail/mail-search.c
index ceef9c7437..7cc7a13e52 100644
--- a/mail/mail-search.c
+++ b/mail/mail-search.c
@@ -164,6 +164,7 @@ static void
toggled_fwd_cb (GtkToggleButton *b, MailSearch *ms)
{
ms->search_forward = gtk_toggle_button_get_active (b);
+ gtk_html_engine_search_set_forward (ms->mail->html, ms->search_forward);
}
static void
@@ -224,8 +225,23 @@ dialog_clicked_cb (GtkWidget *w, gint button_number, MailSearch *ms)
static void
begin_cb (ESearchingTokenizer *st, gchar *foo, MailSearch *ms)
{
+ const gchar *subject;
+
+ if (ms && ms->mail && ms->mail->current_message) {
+
+ subject = ms->mail->current_message->subject;
+
+ if (subject == NULL)
+ subject = _("Untitled Message");
+
+ } else {
+
+ subject = _("Empty Message");
+
+ }
+
gtk_label_set_text (GTK_LABEL (ms->count_label), "0");
- mail_search_set_subject (ms, ms->mail->current_message->subject);
+ mail_search_set_subject (ms, subject);
}
static void
cgit/freebsd-ports-gnome/commit/multimedia/tvheadend?h=dependabot/npm_and_yarn/devel/electron6/files/ini-1.3.8&id=1be6fd3f97ac39b0dec2bb680e7edaed0038fdac'>multimedia/tvheadend: Follow upstream and revert "FreeBSD: Fix recv problem i...decke2018-10-252-0/+24 * multimedia/tvheadend: Update to 4.2.7decke2018-10-166-179/+25 * multimedia/tvheadend: Fix build with mips/mips64/powerpc64decke2018-10-111-6/+2 * multimedia/tvheadend: Remove PORTSCOUT line because it does not workdecke2018-07-121-2/+0 * multimedia/tvheadend: Add new option for DVBEN50221 and bump PORTREVISIONdecke2018-07-121-2/+6 * multimedia/tvheadend: fix two major problems of webui on FreeBSDdecke2018-06-132-1/+75 * multimedia/tvheadend: tell PORTSCOUT to ignore development versionsdecke2018-06-131-0/+2 * multimedia/tvheadend: unbreak with ffmpeg 4.0jbeich2018-05-022-1/+5 * multimedia/ffmpeg: update to 4.0jbeich2018-05-021-1/+2 * Fix tcp_socket_dead() for FreeBSDdecke2018-04-182-0/+40 * - Update to 4.2.6decke2018-03-273-4/+33 * Update to 4.2.5decke2018-01-075-125/+4 * multimedia/ffmpeg: update to 3.4jbeich2017-10-211-0/+1 * Revert r450353 and unbreakantoine2017-09-241-2/+2 * Cleanup after removal of libexecinfo from ports.mat2017-09-221-2/+2 * Remove USES=execinfo.mat2017-09-221-1/+1 * - Update to 4.2.3decke2017-09-1113-569/+413 * Mark some ports failing on power64. In cases where the error messagelinimon2017-05-211-1/+3 * Provide more descriptive error messages for ports failing on powerpc64.linimon2017-04-301-3/+2 * Use correct group in prestart when creating logdir/confdir/pidfile.decke2017-04-202-4/+4 * - Remove always true OSVERSION conditionsamdmi32017-04-081-7/+1 * - Fix build failure when devel/libinotify is installed becausedecke2017-02-061-3/+8 * Shebangfix the target of a symlink instead of a symlinkantoine2017-01-211-1/+1 * multimedia/ffmpeg: update to 3.2.2jbeich2016-12-111-1/+1 * multimedia/tvheadend: unbreak with ffmpeg 3.xjbeich2016-12-04