summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCosimo Cecchi <cosimoc@gnome.org>2011-12-02 18:16:26 -0500
committerCosimo Cecchi <cosimoc@gnome.org>2011-12-02 18:16:26 -0500
commit0a5838004030f64d9f27c55a3f2f49275b82b79f (patch)
tree512e6b3334375ebf36a99b5cebd050785feb427d
parent098aa9334123334d500c166f13dc47f5f110cd8a (diff)
downloadnautilus-0a5838004030f64d9f27c55a3f2f49275b82b79f.tar.gz
properties-window: initiate a new row when no sibling is provided
This was the original intent of this code.
-rw-r--r--src/nautilus-properties-window.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/nautilus-properties-window.c b/src/nautilus-properties-window.c
index 2aea6f71e..69352fe58 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,