Make TimezoneMap better suitable for testing
> When testing, we need to set the location of the bitmaps our TimezoneMap is
> using, so let it try to get the location from the environment.
Have you also verified this works in a package build?
> diff --git a/widgets/src/tz.c b/widgets/src/tz.c
> index 5173808..ca42f8c 100644
> --- a/widgets/src/tz.c
> +++ b/widgets/src/tz.c
> @@ -41,6 +41,17 @@ static void sort_locations_by_country (GPtrArray *locations);
> static gchar * tz_data_file_get (void);
> static void load_backward_tz (TzDB *tz_db);
>
> +gchar *get_widgets_datadir() {
> + gchar *env_value;
> +
> + env_value = getenv("ANACONDA_WIDGETS_DATA");
> + if (env_value == NULL)
> + //defined in the widgets/src/Makefile.am
Please don't use this style of comment.
- Chris
_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
|