[nautilus-actions] Do not force a null window size or position



commit dd9adf8f8fb1da94f9db8b2b46667ea4206dbc8c
Author: Pierre Wieser <pwieser trychlos org>
Date:   Sun Jan 16 01:19:32 2011 +0100

    Do not force a null window size or position

 ChangeLog              |    3 +++
 src/nact/base-iprefs.c |    2 ++
 2 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index ae0be3d..a5eb6b9 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -25,6 +25,9 @@
 
 2011-01-15 Pierre Wieser <pwieser trychlos org>
 
+	* src/nact/base-iprefs.c
+	(base_iprefs_position_named_window): Do not force a null window size or position.
+
 	* src/core/na-settings.c
 	(na_settings_get_string_list): Do not allocate an empty string list.
 
diff --git a/src/nact/base-iprefs.c b/src/nact/base-iprefs.c
index 0b3f8c3..7ea64b0 100644
--- a/src/nact/base-iprefs.c
+++ b/src/nact/base-iprefs.c
@@ -192,7 +192,9 @@ base_iprefs_position_named_window( const BaseWindow *window, GtkWindow *toplevel
 			int_list_to_position( window, list, &x, &y, &width, &height );
 			g_debug( "%s: key=%s, x=%d, y=%d, width=%d, height=%d", thisfn, key, x, y, width, height );
 			free_int_list( list );
+		}
 
+		if( width > 0 && height > 0 ){
 			display = gdk_display_get_default();
 			screen = gdk_display_get_screen( display, 0 );
 			screen_width = gdk_screen_get_width( screen );



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