comparison src/utilops.c @ 932:988eff509920

added icon for changes without warnings
author nadvornik
date Sat, 26 Jul 2008 18:33:49 +0000
parents a53f5141228b
children 6aa60ae6f274
comparison
equal deleted inserted replaced
931:a53f5141228b 932:988eff509920
819 819
820 static GdkPixbuf *file_util_get_error_icon(FileData *fd, GtkWidget *widget) 820 static GdkPixbuf *file_util_get_error_icon(FileData *fd, GtkWidget *widget)
821 { 821 {
822 static GdkPixbuf *pb_warning; 822 static GdkPixbuf *pb_warning;
823 static GdkPixbuf *pb_error; 823 static GdkPixbuf *pb_error;
824 static GdkPixbuf *pb_apply;
824 gint error; 825 gint error;
825 826
826 if (!pb_warning) 827 if (!pb_warning)
827 { 828 {
828 pb_warning = gtk_widget_render_icon(widget, GTK_STOCK_DIALOG_WARNING, GTK_ICON_SIZE_MENU, NULL); 829 pb_warning = gtk_widget_render_icon(widget, GTK_STOCK_DIALOG_WARNING, GTK_ICON_SIZE_MENU, NULL);
830 831
831 if (!pb_error) 832 if (!pb_error)
832 { 833 {
833 pb_error = gtk_widget_render_icon(widget, GTK_STOCK_DIALOG_ERROR, GTK_ICON_SIZE_MENU, NULL); 834 pb_error = gtk_widget_render_icon(widget, GTK_STOCK_DIALOG_ERROR, GTK_ICON_SIZE_MENU, NULL);
834 } 835 }
836
837 if (!pb_apply)
838 {
839 pb_apply = gtk_widget_render_icon(widget, GTK_STOCK_APPLY, GTK_ICON_SIZE_MENU, NULL);
840 }
835 841
836 error = file_data_sc_verify_ci(fd); 842 error = file_data_sc_verify_ci(fd);
837 843
838 if (!error) return NULL; 844 if (!error) return pb_apply;
839 845
840 if (error & CHANGE_ERROR_MASK) 846 if (error & CHANGE_ERROR_MASK)
841 { 847 {
842 return pb_error; 848 return pb_error;
843 } 849 }