Re: Updated patch for toggling show hidden files state



On Mon, 2004-06-21 at 19:48, Alexander Larsson wrote:
> On Sun, 2004-06-20 at 13:21, Jamie McCracken wrote:
> > I have added an updated patch to bugzilla for this bug:
> > 
> > http://bugzilla.gnome.org/show_bug.cgi?id=43472
> > 
> > This large patch now works more appropriately for both browser and
> > spatial modes.
> 
> There was a couple of issues with this patch:
> 
> new_info->initial_view & new_info not freed in callback
> 
> some complexity wrt when to show the window can now be removed if we
> always wait for the metadata before loading the view.
> 
> +			show_hidden_file_setting = g_strdup("1");
> +		} else {
> +			show_hidden_file_setting = g_strdup("0");
> missing space before the paranthesis, and there is no need to strdup
> here
> 
> +	/* reset show hidden state for nautilus browser to default */	
> +	if (nautilus_view_get_window_type (nautilus_view) == Nautilus_WINDOW_NAVIGATION
> This doesn't look right. We want to keep the window setting when we
> change location in the browser mode.
> 
> +	/* only apply global show hidden files pref if browser or local setting has not been set for this uri */
> 
> This comment isn't right wrt browser mode.
> 
> nautilus_view_get_show_hidden_files_mode () should probably cache the
> result.
> 
> "view -> Reset view to defaults" should reset the show hidden mode too.
> 
> Nautilus_ShowHiddenFilesMode show_hidden_files_mode;
> should be in NautilusWindowDetails, not in NautilusWindowClass.
> 
> The hidden mode needs to be propagated to the tree sidebar view too.
> 
> The window hidden mode doesn't affect the recursive file counts.
> 
> 
> 
> I've fixed all this but the last one (it required some more changes too)
> and commited to HEAD. Thanks a lot for your work!

Thanks for fixing and committing it too. Your comments are really
helpful as I'm still getting to grips with nautilus (and the yucky corba
interfaces).

jamie.

> 
> =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
>  Alexander Larsson                                            Red Hat, Inc 
>                    alexl redhat com    alla lysator liu se 
> He's a lonely albino hairdresser who dotes on his loving old ma. She's a 
> psychotic motormouth hooker fleeing from a Satanic cult. They fight crime! 
> 
> 




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