[gthumb/ext: 34/79] removed wrong unref
- From: Paolo Bacchilega <paobac src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gthumb/ext: 34/79] removed wrong unref
- Date: Sun, 2 Aug 2009 20:26:45 +0000 (UTC)
commit caa8e044498f0dc70f8d85f3499fa478100171bb
Author: Paolo Bacchilega <paobac src gnome org>
Date: Fri Jul 3 21:50:40 2009 +0200
removed wrong unref
extensions/file_manager/actions.c | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/extensions/file_manager/actions.c b/extensions/file_manager/actions.c
index cbb4c2e..d881bd7 100644
--- a/extensions/file_manager/actions.c
+++ b/extensions/file_manager/actions.c
@@ -43,10 +43,8 @@ _gth_browser_create_new_folder (GthBrowser *browser,
1024,
GTK_STOCK_CANCEL,
_("C_reate"));
- if (folder_name == NULL) {
- g_object_unref (parent);
+ if (folder_name == NULL)
return;
- }
file_source = gth_main_get_file_source (parent);
file = _g_directory_create_unique (parent, folder_name, "", &error);
@@ -520,7 +518,7 @@ gth_browser_activate_action_folder_create (GtkAction *action,
{
GthFileData *parent;
- parent = gth_folder_tree_get_selected_or_parent (GTH_FOLDER_TREE (gth_browser_get_folder_tree (browser)));
+ parent = gth_folder_tree_get_selected (GTH_FOLDER_TREE (gth_browser_get_folder_tree (browser)));
if (parent == NULL)
return;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]