Re: [PATCH] Don't write back "show hidden files" metadata on pref changes



Am Samstag, den 27.08.2005, 12:17 +0200 schrieb Christian Neumair:
> The proposed patch fixes bug 306821 [1].
> 
> [1] http://bugzilla.gnome.org/show_bug.cgi?id=306821

Forgot to attach it.

-- 
Christian Neumair <chris gnome-de org>
Index: src/file-manager/fm-directory-view.c
===================================================================
RCS file: /cvs/gnome/nautilus/src/file-manager/fm-directory-view.c,v
retrieving revision 1.704
diff -u -p -r1.704 fm-directory-view.c
--- src/file-manager/fm-directory-view.c	22 Aug 2005 21:17:58 -0000	1.704
+++ src/file-manager/fm-directory-view.c	27 Aug 2005 10:14:04 -0000
@@ -8126,11 +8181,13 @@ filtering_changed_callback (gpointer cal
 	    && mode == NAUTILUS_WINDOW_SHOW_HIDDEN_FILES_DEFAULT) {
 		directory_view->details->show_hidden_files = new_show_hidden;
 		directory_view->details->show_backup_files = new_show_hidden;
-		
+
 		action = gtk_action_group_get_action (directory_view->details->dir_action_group,
 						      FM_ACTION_SHOW_HIDDEN_FILES);
+		g_signal_handlers_block_by_func (action, action_show_hidden_files_callback, directory_view);
 		gtk_toggle_action_set_active (GTK_TOGGLE_ACTION (action),
 					      directory_view->details->show_hidden_files);
+		g_signal_handlers_unblock_by_func (action, action_show_hidden_files_callback, directory_view);
 
 		/* Reload the current uri so that the filtering changes take place. */
 		if (directory_view->details->model != NULL) {

Attachment: signature.asc
Description: This is a digitally signed message part



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]