Add some reminder comments.

This commit is contained in:
Přemysl Eric Janouch 2011-01-29 13:09:16 +01:00
parent cf3e4ae473
commit 400568ed7d
2 changed files with 4 additions and 0 deletions

View File

@ -443,6 +443,9 @@ load_category_cb (gpointer data, gpointer user_data)
g_object_set (button, "can-focus", FALSE, NULL); g_object_set (button, "can-focus", FALSE, NULL);
/* Assign the category to the toggle button. */ /* Assign the category to the toggle button. */
/* TODO: Move this to the data parameter for the signal handler.
* Use g_signal_connect_data() to set up destroy notification.
*/
g_object_ref (cat); g_object_ref (cat);
g_object_set_data_full (G_OBJECT (button), g_object_set_data_full (G_OBJECT (button),
"category", cat, (GDestroyNotify) g_object_unref); "category", cat, (GDestroyNotify) g_object_unref);

View File

@ -510,6 +510,7 @@ diagram_save (LdWindowMain *self)
return; return;
} }
/* FIXME: If this fails, we still retain the filename. */
error = NULL; error = NULL;
ld_diagram_save_to_file (self->priv->diagram, ld_diagram_save_to_file (self->priv->diagram,
self->priv->filename, &error); self->priv->filename, &error);