nautilus r14842 - in trunk: . src/file-manager
- From: alexl svn gnome org
- To: svn-commits-list gnome org
- Subject: nautilus r14842 - in trunk: . src/file-manager
- Date: Tue, 13 Jan 2009 08:53:46 +0000 (UTC)
Author: alexl
Date: Tue Jan 13 08:53:46 2009
New Revision: 14842
URL: http://svn.gnome.org/viewvc/nautilus?rev=14842&view=rev
Log:
2009-01-13 Alexander Larsson <alexl redhat com>
* src/file-manager/fm-directory-view.c (fm_directory_view_notify_selection_changed):
Don't get selection unless debugging is really turned on.
(For performance reasons)
Modified:
trunk/ChangeLog
trunk/src/file-manager/fm-directory-view.c
Modified: trunk/src/file-manager/fm-directory-view.c
==============================================================================
--- trunk/src/file-manager/fm-directory-view.c (original)
+++ trunk/src/file-manager/fm-directory-view.c Tue Jan 13 08:53:46 2009
@@ -8318,12 +8318,15 @@
g_return_if_fail (FM_IS_DIRECTORY_VIEW (view));
- selection = fm_directory_view_get_selection (view);
+ if (nautilus_debug_log_is_domain_enabled (NAUTILUS_DEBUG_LOG_DOMAIN_USER)) {
+ selection = fm_directory_view_get_selection (view);
- window = fm_directory_view_get_containing_window (view);
- nautilus_debug_log_with_file_list (FALSE, NAUTILUS_DEBUG_LOG_DOMAIN_USER, selection,
- "selection changed in window %p",
- window);
+ window = fm_directory_view_get_containing_window (view);
+ nautilus_debug_log_with_file_list (FALSE, NAUTILUS_DEBUG_LOG_DOMAIN_USER, selection,
+ "selection changed in window %p",
+ window);
+ nautilus_file_list_free (selection);
+ }
view->details->selection_was_removed = FALSE;
@@ -8350,8 +8353,6 @@
/* Schedule an update of menu item states to match selection */
schedule_update_menus (view);
}
-
- nautilus_file_list_free (selection);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]