diff --git a/README.markdown b/README.markdown index f70deec..5b99c05 100644 --- a/README.markdown +++ b/README.markdown @@ -118,10 +118,11 @@ Known bugs Changelog --------- +pqiv 2.3.5 + * Fix parameters in pqivrc that are handled by a callback + pqiv 2.3.4 * Fix reference counting if an image fails to load - -pqiv 2.3.3 * Properly reload multi-page files if they change on disk while being viewed * Properly handle if a user closes pqiv while the image loader is still active diff --git a/pqiv.c b/pqiv.c index d12f362..1a7c3ac 100644 --- a/pqiv.c +++ b/pqiv.c @@ -587,7 +587,9 @@ void parse_configuration_file(int *argc, char **argv[]) {/*{{{*/ gchar *option_value = g_key_file_get_string(key_file, "options", iter->long_name, NULL); if(option_value != NULL) { if(iter->arg == G_OPTION_ARG_CALLBACK) { - (*(GOptionArgFunc *)(iter->arg_data))(NULL, option_value, NULL, &error_pointer); + gchar long_name[64]; + g_snprintf(long_name, 64, "--%s", iter->long_name); + ((GOptionArgFunc)(iter->arg_data))(long_name, option_value, NULL, &error_pointer); } else { *(gchar **)(iter->arg_data) = option_value; diff --git a/pqiv.h b/pqiv.h index 72386fa..662dbfb 100644 --- a/pqiv.h +++ b/pqiv.h @@ -29,7 +29,7 @@ #include "lib/bostree.h" #ifndef PQIV_VERSION -#define PQIV_VERSION "2.3.4" +#define PQIV_VERSION "2.3.5" #endif #define FILE_FLAGS_ANIMATION (guint)(1)