Re: nautilus initial window size



This time I even managed to attach it.

- Frank


On Mon, 2002-05-27 at 22:46, Frank Worsley wrote:
> Here is a little patch to implement this funtionality. I'm running it
> right now and it's great. If I open a new window from the desktop it
> shows up in the same size as before. Otherwise the windows stay the same
> size once opened.
> 
> It shouldn't have any impact on session management.
> 
> Any objections to committing this little patchlet? :)
> 
> - Frank
> 
> 
> On Sun, 2002-05-26 at 23:26, Dave Bordoley wrote:
> > Seems reasonable. How does this interact with the overall lack of
> > session management in nautilus. See bug 81313. 
> > 
> > dave
> 

Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/nautilus/ChangeLog,v
retrieving revision 1.5336
diff -u -p -r1.5336 ChangeLog
--- ChangeLog	2002/05/27 17:59:20	1.5336
+++ ChangeLog	2002/05/28 05:46:54
@@ -1,3 +1,12 @@
+2002-05-27  Frank Worsley  <fworsley shaw ca>
+
+	* src/nautilus-window-manage-views.c: (use_saved_window_positions):
+	always use the saved window positions. nice when I open a window
+	from the desktop because it remembers its size.
+	
+	* src/nautilus-window.c: (nautilus_window_close):
+	always save the window positions.
+
 2002-05-27  Michael Meeks  <michael ximian com>
 
 	* libnautilus-private/nautilus-file.c (make_valid_utf8):
Index: src/nautilus-window-manage-views.c
===================================================================
RCS file: /cvs/gnome/nautilus/src/nautilus-window-manage-views.c,v
retrieving revision 1.296
diff -u -p -r1.296 nautilus-window-manage-views.c
--- src/nautilus-window-manage-views.c	2002/05/22 09:51:23	1.296
+++ src/nautilus-window-manage-views.c	2002/05/28 05:46:55
@@ -611,7 +611,8 @@ ref_now_unref_at_idle_time (GObject *obj
 static gboolean
 use_saved_window_positions (void)
 {
-        return eel_preferences_get_boolean (NAUTILUS_PREFERENCES_WINDOW_ALWAYS_NEW);
+	/* for now we always want to use the save window positions. */
+	return TRUE;
 }
 
 /* This is called when we have decided we can actually change to the new view/location situation. */
Index: src/nautilus-window.c
===================================================================
RCS file: /cvs/gnome/nautilus/src/nautilus-window.c,v
retrieving revision 1.388
diff -u -p -r1.388 nautilus-window.c
--- src/nautilus-window.c	2002/05/24 21:54:05	1.388
+++ src/nautilus-window.c	2002/05/28 05:46:55
@@ -884,15 +884,9 @@ nautilus_window_save_geometry (NautilusW
 void
 nautilus_window_close (NautilusWindow *window)
 {
-        g_return_if_fail (NAUTILUS_IS_WINDOW (window));
+	g_return_if_fail (NAUTILUS_IS_WINDOW (window));
 
-	/* Save the window position in the directory's metadata only if
-	 * we're in every-location-in-its-own-window mode. Otherwise it
-	 * would be too apparently random when the stored positions change.
-	 */
-	if (eel_preferences_get_boolean (NAUTILUS_PREFERENCES_WINDOW_ALWAYS_NEW)) {
-	        nautilus_window_save_geometry (window);
-	}
+	nautilus_window_save_geometry (window);
 
 	gtk_widget_destroy (GTK_WIDGET (window));
 }


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