1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-12-04 14:46:46 -05:00

Use more generic test image path

This commit is contained in:
Michael Vetter 2021-01-11 12:08:15 +01:00
parent 64e3cf28ec
commit f178bfb43c

View File

@ -1963,11 +1963,15 @@ win_insert_last_read_position_marker(ProfWin* window, char* id)
void void
win_pictest(ProfWin* window) win_pictest(ProfWin* window)
{ {
GdkPixbuf *file = gdk_pixbuf_new_from_file ("/home/michael/Pictures/test.png", NULL); gchar *path = get_expanded_path("~/test.png");
GdkPixbuf *file = gdk_pixbuf_new_from_file (path, NULL);
if (file == NULL) { if (file == NULL) {
win_println(window, THEME_ERROR, "!", "pictest"); win_println(window, THEME_ERROR, "!", "pictest");
g_free(path);
return; return;
} }
g_free(path);
ChafaCanvasConfig *config; ChafaCanvasConfig *config;
ChafaCanvas *canvas; ChafaCanvas *canvas;
ChafaSymbolMap *symbol_map; ChafaSymbolMap *symbol_map;