Skip to content

Commit

Permalink
[import-backend.cpp] generate warning emoji pixbuf
Browse files Browse the repository at this point in the history
  • Loading branch information
christopherlam committed Apr 3, 2024
1 parent 460cdb0 commit 20b38cd
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
27 changes: 27 additions & 0 deletions gnucash/import-export/import-backend.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -405,6 +405,33 @@ GdkPixbuf* gen_probability_pixbuf(gint score_original, GNCImportSettings *settin
return retval;
}

GdkPixbuf* gen_warning_pixbuf ()
{
static const char* warning_xpm[] = {
"16 16 3 1",
" c None",
". c #000000",
"+ c #CCCC00",
" ",
" .. ",
" .. ",
" .++. ",
" .++. ",
" .++++. ",
" .++++. ",
" .++..++. ",
" .++..++. ",
" .+++..+++. ",
" .+++..+++. ",
" .++++++++++. ",
" .++++..++++. ",
" .+++++..+++++. ",
" .++++++++++++. ",
"................",
};
return gdk_pixbuf_new_from_xpm_data (warning_xpm);
}

/*************************************************************************
* MatchMap related functions (storing and retrieving)
*/
Expand Down
1 change: 1 addition & 0 deletions gnucash/import-export/import-backend.h
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@ GdkPixbuf* gen_probability_pixbuf (gint score,
GNCImportSettings *settings,
GtkWidget * widget);

GdkPixbuf* gen_warning_pixbuf ();
/*@}*/


Expand Down

0 comments on commit 20b38cd

Please sign in to comment.