summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMonsta <[email protected]>2015-06-18 16:09:40 +0300
committerMonsta <[email protected]>2015-06-18 16:09:40 +0300
commit5690a7f39eb644c4cd7c299fd092b0fd5a1a3cd9 (patch)
treeac92cbe65d34668f56798bb3eab3b8a33f818287 /src
parentb4e25754bf17ef54569367718eda57ea759108c5 (diff)
downloadcaja-5690a7f39eb644c4cd7c299fd092b0fd5a1a3cd9.tar.bz2
caja-5690a7f39eb644c4cd7c299fd092b0fd5a1a3cd9.tar.xz
places sidebar: fix indentation a bit
Diffstat (limited to 'src')
-rw-r--r--src/caja-places-sidebar.c14
1 files changed, 6 insertions, 8 deletions
diff --git a/src/caja-places-sidebar.c b/src/caja-places-sidebar.c
index 55517be2..3acd1810 100644
--- a/src/caja-places-sidebar.c
+++ b/src/caja-places-sidebar.c
@@ -1134,7 +1134,6 @@ compute_drop_position (GtkTreeView *tree_view,
/* never drop on headings, but special case the bookmarks heading,
* so we can drop bookmarks in between it and the first item.
*/
-
gtk_tree_path_free (*path);
*path = NULL;
@@ -1145,9 +1144,8 @@ compute_drop_position (GtkTreeView *tree_view,
sidebar->drag_data_received &&
sidebar->drag_data_info == GTK_TREE_MODEL_ROW) {
/* don't allow dropping bookmarks into non-bookmark areas */
-
- gtk_tree_path_free (*path);
- *path = NULL;
+ gtk_tree_path_free (*path);
+ *path = NULL;
return FALSE;
}
@@ -1266,10 +1264,10 @@ drag_motion_callback (GtkTreeView *tree_view,
}
if (pos == GTK_TREE_VIEW_DROP_BEFORE ||
- pos == GTK_TREE_VIEW_DROP_AFTER )
+ pos == GTK_TREE_VIEW_DROP_AFTER )
{
if (sidebar->drag_data_received &&
- sidebar->drag_data_info == GTK_TREE_MODEL_ROW)
+ sidebar->drag_data_info == GTK_TREE_MODEL_ROW)
{
action = GDK_ACTION_MOVE;
}
@@ -1527,7 +1525,7 @@ drag_data_received_callback (GtkWidget *widget,
success = FALSE;
if (tree_pos == GTK_TREE_VIEW_DROP_BEFORE ||
- tree_pos == GTK_TREE_VIEW_DROP_AFTER)
+ tree_pos == GTK_TREE_VIEW_DROP_AFTER)
{
model = gtk_tree_view_get_model (tree_view);
@@ -1538,7 +1536,7 @@ drag_data_received_callback (GtkWidget *widget,
gtk_tree_model_get (model, &iter,
PLACES_SIDEBAR_COLUMN_SECTION_TYPE, &section_type,
- PLACES_SIDEBAR_COLUMN_ROW_TYPE, &place_type,
+ PLACES_SIDEBAR_COLUMN_ROW_TYPE, &place_type,
PLACES_SIDEBAR_COLUMN_INDEX, &position,
-1);