2007-05-11 Murray Cumming <murrayc@murrayc.com>
+ * src/maemo/modest-main-window.c: (on_account_update): Make the gchar*
+ parameter const, just to be neat.
+ * src/modest-text-utils.c: (modest_text_utils_inline):
+ End g_strconcat() with NULL, as its documentation says. This is almost
+ certainly the cause of my crash at startup on the device. Interestingly,
+ valgrind doesn't tell us about these errors.
+
+2007-05-11 Murray Cumming <murrayc@murrayc.com>
+
* scripts/build-packages: Added more precise comments about how to use
this script, though I still get this error:
dpkg-genchanges: error: cannot open .dsc file ../tinymail_1.0-svn1938.dsc: No such file or directory
ModestMainWindow *self);
static void on_account_update (TnyAccountStore *account_store,
- gchar *account_name,
+ const gchar *account_name,
gpointer user_data);
static gboolean on_inner_widgets_key_pressed (GtkWidget *widget,
static void
on_account_update (TnyAccountStore *account_store,
- gchar *account_name,
+ const gchar *account_name,
gpointer user_data)
{
GSList *account_names, *iter, *accounts;
changes in a single execution because we're
downcasting the guint to a guint8 in order to use a
GByteArray, it should be enough */
- gchar* item_name = g_strconcat (account_data->account_name, "Menu");
+ gchar* item_name = g_strconcat (account_data->account_name, "Menu", NULL);
guint8 merge_id = (guint8) gtk_ui_manager_new_merge_id (parent_priv->ui_manager);
priv->merge_ids = g_byte_array_append (priv->merge_ids, &merge_id, 1);
gtk_ui_manager_add_ui (parent_priv->ui_manager,
if (!strcmp (content_type, "text/html")) {
formatted_signature = g_strconcat (signature, "<br/>", NULL);
} else {
- formatted_signature = g_strconcat (signature, "\n");
+ formatted_signature = g_strconcat (signature, "\n", NULL);
}
} else {
formatted_signature = "";