aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/attachment-reminder
diff options
context:
space:
mode:
authorKjartan Maraas <kmaraas@src.gnome.org>2007-10-31 06:21:14 +0800
committerKjartan Maraas <kmaraas@src.gnome.org>2007-10-31 06:21:14 +0800
commitf13fd21b50fa97b4ce7e29ce82d471c1f1870c11 (patch)
tree4f04f16373ca46b199bcd2677c9d2d434d308d9f /plugins/attachment-reminder
parent5c1b5556bf7d92acddefa8bd01911299b5acad61 (diff)
downloadgsoc2013-evolution-f13fd21b50fa97b4ce7e29ce82d471c1f1870c11.tar
gsoc2013-evolution-f13fd21b50fa97b4ce7e29ce82d471c1f1870c11.tar.gz
gsoc2013-evolution-f13fd21b50fa97b4ce7e29ce82d471c1f1870c11.tar.bz2
gsoc2013-evolution-f13fd21b50fa97b4ce7e29ce82d471c1f1870c11.tar.lz
gsoc2013-evolution-f13fd21b50fa97b4ce7e29ce82d471c1f1870c11.tar.xz
gsoc2013-evolution-f13fd21b50fa97b4ce7e29ce82d471c1f1870c11.tar.zst
gsoc2013-evolution-f13fd21b50fa97b4ce7e29ce82d471c1f1870c11.zip
Fix warnings from sparse and gcc
svn path=/trunk/; revision=34458
Diffstat (limited to 'plugins/attachment-reminder')
-rw-r--r--plugins/attachment-reminder/ChangeLog6
-rw-r--r--plugins/attachment-reminder/attachment-reminder.c9
2 files changed, 11 insertions, 4 deletions
diff --git a/plugins/attachment-reminder/ChangeLog b/plugins/attachment-reminder/ChangeLog
index 9ba93d3fbc..3d54bebb90 100644
--- a/plugins/attachment-reminder/ChangeLog
+++ b/plugins/attachment-reminder/ChangeLog
@@ -1,3 +1,9 @@
+2007-10-26 Kjartan Maraas <kmaraas@gnome.org>
+
+ * attachment-reminder.c: (check_for_attachment_clues),
+ (clue_check_isempty): Don't mix code and declarations. Also
+ remove a c++ comment.
+
2007-09-06 B S Srinidhi <srinidhi.bs@gmail.com>
** Fix for bug #468366
diff --git a/plugins/attachment-reminder/attachment-reminder.c b/plugins/attachment-reminder/attachment-reminder.c
index 59e3bb3a08..8cec986cd5 100644
--- a/plugins/attachment-reminder/attachment-reminder.c
+++ b/plugins/attachment-reminder/attachment-reminder.c
@@ -126,18 +126,19 @@ static gboolean ask_for_missing_attachment (GtkWindow *window)
/* check for the clues */
static gboolean check_for_attachment_clues (gchar *msg)
{
- //TODO : Add more strings. RegEx ???
+ /* TODO : Add more strings. RegEx ??? */
GConfClient *gconf;
GSList *clue_list = NULL, *list;
gboolean ret_val = FALSE;
+ guint msg_length;
gconf = gconf_client_get_default ();
- //Get the list from gconf
+ /* Get the list from gconf */
clue_list = gconf_client_get_list ( gconf, GCONF_KEY_ATTACH_REMINDER_CLUES, GCONF_VALUE_STRING, NULL );
- guint msg_length = strlen (msg);
+ msg_length = strlen (msg);
for (list = clue_list;list && !ret_val;list=g_slist_next(list)) {
gchar *needle = g_utf8_strdown (list->data, -1);
@@ -301,7 +302,7 @@ clue_add_clicked (GtkButton *button, UIData *ui)
/* Disconnect from signal so that we can create an empty row */
g_signal_handlers_disconnect_matched(G_OBJECT(model), G_SIGNAL_MATCH_FUNC, 0, 0, NULL, clue_check_isempty, ui);
- //TODO : Trim and check for blank strings
+ /* TODO : Trim and check for blank strings */
new_clue = g_strdup ("");
gtk_list_store_append (GTK_LIST_STORE (model), &iter);
gtk_list_store_set (GTK_LIST_STORE (model), &iter,