Fixes brought to us by Purify

svn path=/trunk/; revision=3792
This commit is contained in:
Matthew Loper
2000-06-29 15:31:01 +00:00
parent 6896f2152a
commit d2875d9e05
5 changed files with 21 additions and 2 deletions

View File

@ -1,3 +1,12 @@
2000-06-29 Peter Williams <peterw@helixcode.com>
* message-list.c (message_list_init): Set the dnd_code of the
ETableHeader to something so that Solaris sprintf doesn't die
on a NULL string.
* mail-config.c (providers_config_new): Check for a null "transport"
string (not all OS' handle NULL strings well *cough* Solaris)
2000-06-28 Dan Winship <danw@helixcode.com>
* mail-format.c (mail_generate_forward): add default subjects

View File

@ -1998,7 +1998,7 @@ providers_config_new (void)
/* Set the data in the transports page */
interior_notebook = gtk_object_get_data (GTK_OBJECT (transport_page_vbox), "notebook");
page = gtk_notebook_get_current_page (GTK_NOTEBOOK (interior_notebook));
if (!strncasecmp(transport, "Sendmail", 8))
if (transport != NULL && !strncasecmp(transport, "Sendmail", 8))
page = 1;
else
page = 0;

View File

@ -754,6 +754,9 @@ message_list_init (GtkObject *object)
"drawfocus", FALSE,
"drawgrid", FALSE,
NULL);
gtk_object_set(GTK_OBJECT(E_TABLE(message_list->etable)->header_item),
"dnd_code", "(unset)",
NULL);
gtk_signal_connect (GTK_OBJECT (message_list->etable), "realize",
GTK_SIGNAL_FUNC (select_row), message_list);

View File

@ -1,3 +1,8 @@
2000-06-29 Peter Williams <peter@helixcode.com>
* e-shell.c (e_shell_construct): Ref the various E-things that
we create to go with our unrefs in the destructor.
2000-06-29 Ettore Perazzoli <ettore@helixcode.com>
* e-shell-view.c (e_shell_view_construct): Don't ref the shell.

View File

@ -281,6 +281,7 @@ setup_components (EShell *shell)
priv = shell->priv;
priv->component_registry = e_component_registry_new (shell);
gtk_object_ref (GTK_OBJECT (priv->component_registry));
/* FIXME: Hardcoded for now. */
@ -451,8 +452,9 @@ e_shell_construct (EShell *shell,
priv->local_directory = g_strdup (local_directory);
priv->folder_type_registry = e_folder_type_registry_new ();
gtk_object_ref (GTK_OBJECT (priv->folder_type_registry ));
priv->storage_set = e_storage_set_new (shell->priv->folder_type_registry);
gtk_object_ref (GTK_OBJECT (priv->storage_set ));
gtk_object_ref (GTK_OBJECT (gconf_client));
priv->gconf_client = gconf_client;