From 2696f1c6ec8ca1615fea80c02d65910dee75f217 Mon Sep 17 00:00:00 2001 From: rbuj Date: Thu, 12 Nov 2020 10:32:46 +0100 Subject: fm-properties-window: make the location of system folders portable --- src/file-manager/Makefile.am | 2 ++ src/file-manager/fm-properties-window.c | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'src/file-manager') diff --git a/src/file-manager/Makefile.am b/src/file-manager/Makefile.am index 6c1e59ca..7ad3ab87 100644 --- a/src/file-manager/Makefile.am +++ b/src/file-manager/Makefile.am @@ -8,6 +8,8 @@ AM_CPPFLAGS = \ $(WARN_CFLAGS) \ -DCAJA_DATADIR=\""$(datadir)/caja"\" \ -DDATADIR=\""$(datadir)"\" \ + -DICONDIR=\""$(datadir)/icons"\" \ + -DPIXMAPDIR=\""$(datadir)/pixmaps"\" \ $(DISABLE_DEPRECATED_CFLAGS) \ $(NULL) diff --git a/src/file-manager/fm-properties-window.c b/src/file-manager/fm-properties-window.c index 4d6ca7f8..69ce70d0 100644 --- a/src/file-manager/fm-properties-window.c +++ b/src/file-manager/fm-properties-window.c @@ -5769,8 +5769,8 @@ select_image_button_callback (GtkWidget *widget, "process-stop", GTK_RESPONSE_CANCEL, "document-open", GTK_RESPONSE_OK, NULL); - gtk_file_chooser_add_shortcut_folder (GTK_FILE_CHOOSER (dialog), "/usr/share/icons", NULL); - gtk_file_chooser_add_shortcut_folder (GTK_FILE_CHOOSER (dialog), "/usr/share/pixmaps", NULL); + gtk_file_chooser_add_shortcut_folder (GTK_FILE_CHOOSER (dialog), ICONDIR, NULL); + gtk_file_chooser_add_shortcut_folder (GTK_FILE_CHOOSER (dialog), PIXMAPDIR, NULL); gtk_window_set_destroy_with_parent (GTK_WINDOW (dialog), TRUE); filter = gtk_file_filter_new (); -- cgit v1.2.1