changeset 932:988eff509920

added icon for changes without warnings
author nadvornik
date Sat, 26 Jul 2008 18:33:49 +0000
parents a53f5141228b
children 8c5ba3e94e54
files src/utilops.c
diffstat 1 files changed, 7 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/utilops.c	Sat Jul 26 18:17:56 2008 +0000
+++ b/src/utilops.c	Sat Jul 26 18:33:49 2008 +0000
@@ -821,6 +821,7 @@
 {
 	static GdkPixbuf *pb_warning;
 	static GdkPixbuf *pb_error;
+	static GdkPixbuf *pb_apply;
 	gint error;
 	
 	if (!pb_warning)
@@ -832,10 +833,15 @@
 		{
 		pb_error = gtk_widget_render_icon(widget, GTK_STOCK_DIALOG_ERROR, GTK_ICON_SIZE_MENU, NULL); 
 		}
+
+	if (!pb_apply)
+		{
+		pb_apply = gtk_widget_render_icon(widget, GTK_STOCK_APPLY, GTK_ICON_SIZE_MENU, NULL); 
+		}
 	
 	error = file_data_sc_verify_ci(fd);
 	
-	if (!error) return NULL;
+	if (!error) return pb_apply;
 
 	if (error & CHANGE_ERROR_MASK) 
 		{