From 605e2ef44d8c06b14ef8dc44a1d6c7df255c8e92 Mon Sep 17 00:00:00 2001 From: zhuyaliang <15132211195@163.com> Date: Tue, 11 Jun 2019 22:50:01 +0800 Subject: use Makefile pkgdatadir --- capplets/time-admin/src/time-map.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'capplets/time-admin/src/time-map.c') diff --git a/capplets/time-admin/src/time-map.c b/capplets/time-admin/src/time-map.c index cdda5577..10a3666e 100644 --- a/capplets/time-admin/src/time-map.c +++ b/capplets/time-admin/src/time-map.c @@ -333,13 +333,13 @@ cc_timezone_map_draw (GtkWidget *widget, /* paint hilight */ if (gtk_widget_is_sensitive (widget)) { - file = g_strdup_printf ("/usr/share/mate-time-admin/map/timezone_%s.png", + file = g_strdup_printf (TIMPZONEDIR"timezone_%s.png", g_ascii_formatd (buf, sizeof (buf), "%g", map->selected_offset)); } else { - file = g_strdup_printf ("/usr/share/mate-time-admin/map/timezone_%s_dim.png", + file = g_strdup_printf (TIMPZONEDIR"timezone_%s_dim.png", g_ascii_formatd (buf, sizeof (buf), "%g", map->selected_offset)); } @@ -542,14 +542,14 @@ timezone_map_init (TimezoneMap *map) { GError *err = NULL; - map->orig_background = gdk_pixbuf_new_from_file ("/usr/share/mate-time-admin/map/bg.png",&err); + map->orig_background = gdk_pixbuf_new_from_file (TIMPZONEDIR"bg.png",&err); if (!map->orig_background) { g_warning ("Could not load background image: %s", (err) ? err->message : "Unknown error"); g_clear_error (&err); } - map->orig_background_dim = gdk_pixbuf_new_from_file("/usr/share/mate-time-admin/map/bg_dim.png",&err); + map->orig_background_dim = gdk_pixbuf_new_from_file(TIMPZONEDIR"bg_dim.png",&err); if (!map->orig_background_dim) { g_warning ("Could not load background image: %s", @@ -557,7 +557,7 @@ timezone_map_init (TimezoneMap *map) g_clear_error (&err); } - map->orig_color_map = gdk_pixbuf_new_from_file ("/usr/share/mate-time-admin/map/cc.png",&err); + map->orig_color_map = gdk_pixbuf_new_from_file (TIMPZONEDIR"cc.png",&err); if (!map->orig_color_map) { g_warning ("Could not load background image: %s", @@ -565,7 +565,7 @@ timezone_map_init (TimezoneMap *map) g_clear_error (&err); } - map->pin = gdk_pixbuf_new_from_file ("/usr/share/mate-time-admin/map/pin.png",&err); + map->pin = gdk_pixbuf_new_from_file (TIMPZONEDIR"pin.png",&err); if (!map->pin) { g_warning ("Could not load pin icon: %s", -- cgit v1.2.1