window->basename ? window->basename : "",
mdash, window->description);
- if (window->unsaved)
+ if (window->dirty)
g_string_prepend_c (title, '*');
gtk_window_set_title (GTK_WINDOW (window), title->str);
{
PsppireWindowRegister *reg = psppire_window_register_new ();
- if ( w->unsaved )
+ if ( w->dirty )
{
gint response = psppire_window_query_save (w);
G_CALLBACK (remove_menuitem),
window);
- window->unsaved = FALSE;
+ window->dirty = FALSE;
g_signal_connect_swapped (window, "delete-event", G_CALLBACK (on_delete), window);
void
psppire_window_set_unsaved (PsppireWindow *w)
{
- w->unsaved = TRUE;
+ w->dirty = TRUE;
+
+ g_get_current_time (&w->savetime);
psppire_window_set_title (w);
}
gboolean
psppire_window_get_unsaved (PsppireWindow *w)
{
- return w->unsaved;
+ return w->dirty;
}
if ( ok )
{
add_most_recent (file, the_recent_mgr);
- w->unsaved = FALSE;
+ w->dirty = FALSE;
}
else
delete_recent (file, the_recent_mgr);