From 72dd8fb3c52b511be1fda5b79268cc438c427963 Mon Sep 17 00:00:00 2001 From: Darin Adler Date: Tue, 19 Dec 2000 00:34:15 +0000 Subject: reviewed by: John Sullivan (Robey also looked at the install part a bit) Fix bug 5212 (File leaks when you start and immediately quit Nautilus). * src/file-manager/fm-directory-view.c: (queue_pending_files): Remove incorrect nautilus_file_list_ref that created a NautilusFile leak. Fix bug 5180 (Defined messages won't end up in translations) by making sure we don't ever use "_()" inside a #define. * libnautilus-extensions/nautilus-file-operations.c: * libnautilus-extensions/nautilus-global-preferences.c: * libnautilus-extensions/nautilus-icon-canvas-item.c: * libnautilus-extensions/nautilus-icon-factory.c: * nautilus-installer/src/installer.c: * nautilus-installer/src/package-tree.c: * src/file-manager/fm-desktop-icon-view.c: * src/nautilus-location-bar.c: Changed all localizable strings in #defines to instead use global (const) variables. We still have the defines, though, since we can't call gettext in a global-initialization. --- libnautilus-extensions/nautilus-global-preferences.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'libnautilus-extensions/nautilus-global-preferences.c') diff --git a/libnautilus-extensions/nautilus-global-preferences.c b/libnautilus-extensions/nautilus-global-preferences.c index 7aba7fe8f..5b38fc9ed 100644 --- a/libnautilus-extensions/nautilus-global-preferences.c +++ b/libnautilus-extensions/nautilus-global-preferences.c @@ -41,7 +41,8 @@ #include /* Constants */ -#define GLOBAL_PREFERENCES_DIALOG_TITLE _("Nautilus Preferences") +static const char untranslated_global_preferences_dialog_title[] = N_("Nautilus Preferences"); +#define GLOBAL_PREFERENCES_DIALOG_TITLE _(untranslated_global_preferences_dialog_title) /* default web search uri */ #define DEFAULT_SEARCH_WEB_URI "http://www.eazel.com/websearch" -- cgit v1.2.1