[nautilus] properties-window: initiate a new row when no sibling is provided



commit 0a5838004030f64d9f27c55a3f2f49275b82b79f
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Fri Dec 2 18:16:26 2011 -0500

    properties-window: initiate a new row when no sibling is provided
    
    This was the original intent of this code.

 src/nautilus-properties-window.c |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/src/nautilus-properties-window.c b/src/nautilus-properties-window.c
index 2aea6f7..69352fe 100644
--- a/src/nautilus-properties-window.c
+++ b/src/nautilus-properties-window.c
@@ -3518,8 +3518,12 @@ add_permissions_checkbox_with_label (NautilusPropertiesWindow *window,
 	check_button = gtk_check_button_new_with_mnemonic (label);
 	gtk_widget_show (check_button);
 
-	gtk_grid_attach_next_to (grid, check_button, sibling,
-				 GTK_POS_RIGHT, 1, 1);
+	if (sibling) {
+		gtk_grid_attach_next_to (grid, check_button, sibling,
+					 GTK_POS_RIGHT, 1, 1);
+	} else {
+		gtk_container_add (GTK_CONTAINER (grid), check_button);
+	}
 
 	set_up_permissions_checkbox (window, 
 				     check_button, 



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