changeset 1569:6245009414c9

small fixes
author nadvornik
date Sun, 26 Apr 2009 11:38:28 +0000
parents 678009e94efe
children 1f3bea0d4599
files src/desktop_file.c
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/desktop_file.c	Sun Apr 26 09:25:52 2009 +0000
+++ b/src/desktop_file.c	Sun Apr 26 11:38:28 2009 +0000
@@ -113,6 +113,9 @@
 		{
 		editor_window_save(ew);
 		}
+
+	gtk_widget_set_sensitive(ew->save_button, FALSE);
+	ew->modified = FALSE;
 }
 
 static void editor_window_text_modified_cb(GtkWidget *widget, gpointer data)
@@ -205,7 +208,7 @@
 	gtk_widget_show(ew->save_button);
 	ct_button = ew->save_button;
 
-	button = pref_button_new(NULL, GTK_STOCK_CANCEL, NULL, FALSE,
+	button = pref_button_new(NULL, GTK_STOCK_CLOSE, NULL, FALSE,
 				 G_CALLBACK(editor_window_close_cb), ew);
 	gtk_container_add(GTK_CONTAINER(button_hbox), button);
 	GTK_WIDGET_SET_FLAGS(button, GTK_CAN_DEFAULT);