summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Schermer <nick@xfce.org>2012-05-15 21:19:02 +0200
committerNick Schermer <nick@xfce.org>2012-05-15 21:19:02 +0200
commit400ee75c28d904103669158c1ac8e8c8579bda12 (patch)
tree5ffe5e09e7be635d9efad637b094eda7e41bf3db
parent61a0f524a177f79980a27ca53f4888f645eef759 (diff)
downloadthunar-400ee75c28d904103669158c1ac8e8c8579bda12.tar.gz
Fix some mistakes.
-rw-r--r--thunar/thunar-folder.c1
-rw-r--r--thunar/thunar-path-entry.c2
-rw-r--r--thunar/thunar-standard-view.c4
3 files changed, 3 insertions, 4 deletions
diff --git a/thunar/thunar-folder.c b/thunar/thunar-folder.c
index 799a360d..1b3b971e 100644
--- a/thunar/thunar-folder.c
+++ b/thunar/thunar-folder.c
@@ -825,6 +825,5 @@ thunar_folder_destroy (ThunarFolder *folder)
* emitted once there. there we can use g_object_unref on
* folders */
g_signal_emit (G_OBJECT (folder), folder_signals[DESTROY], 0);
-
g_object_unref (G_OBJECT (folder));
}
diff --git a/thunar/thunar-path-entry.c b/thunar/thunar-path-entry.c
index a6ec8688..94aaf586 100644
--- a/thunar/thunar-path-entry.c
+++ b/thunar/thunar-path-entry.c
@@ -869,7 +869,7 @@ thunar_path_entry_changed (GtkEditable *editable)
/* cleanup */
if (G_LIKELY (folder != NULL))
- thunar_folder_destroy (folder);
+ g_object_unref (G_OBJECT (folder));
}
/* update the current file if required */
diff --git a/thunar/thunar-standard-view.c b/thunar/thunar-standard-view.c
index 54fe1c91..bfd324e9 100644
--- a/thunar/thunar-standard-view.c
+++ b/thunar/thunar-standard-view.c
@@ -1210,7 +1210,7 @@ thunar_standard_view_set_current_directory (ThunarNavigator *navigator,
/* apply the new folder */
thunar_list_model_set_folder (standard_view->model, folder);
- thunar_folder_destroy (folder);
+ g_object_unref (G_OBJECT (folder));
/* reconnect our model to the view */
g_object_set (G_OBJECT (child), "model", standard_view->model, NULL);
@@ -2747,7 +2747,7 @@ thunar_standard_view_drag_data_received (GtkWidget *view,
/* reload the folder corresponding to the file */
folder = thunar_folder_get_for_file (file);
thunar_folder_reload (folder);
- thunar_folder_destroy (folder);
+ g_object_unref (G_OBJECT (folder));
}
/* cleanup */