[nautilus] view: code formatting
- From: Carlos Soriano Sánchez <csoriano src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] view: code formatting
- Date: Sat, 24 Jan 2015 01:08:56 +0000 (UTC)
commit 27a82acd4395395e60ddfb67082d004a60eb23cb
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Tue Jan 20 23:28:05 2015 -0800
view: code formatting
src/nautilus-view.c | 9 +++------
1 files changed, 3 insertions(+), 6 deletions(-)
---
diff --git a/src/nautilus-view.c b/src/nautilus-view.c
index fa3b24b..3d5fadb 100644
--- a/src/nautilus-view.c
+++ b/src/nautilus-view.c
@@ -4363,21 +4363,17 @@ add_template_to_templates_menus (NautilusView *view,
g_free (tmp);
uri = nautilus_file_get_uri (file);
-
action_name = nautilus_escape_action_name (uri, "template_");
+ action = G_ACTION (g_simple_action_new (action_name, NULL));
parameters = create_template_parameters_new (file, view);
- action = G_ACTION (g_simple_action_new (action_name, NULL));
-
g_signal_connect_data (action, "activate",
G_CALLBACK (create_template),
parameters,
(GClosureNotify)create_templates_parameters_free, 0);
g_action_map_add_action (G_ACTION_MAP (view->details->view_action_group), action);
-
- g_object_unref (action);
-
+
detailed_action_name = g_strconcat ("view.", action_name, NULL);
menu_item = g_menu_item_new (name, detailed_action_name);
@@ -4393,6 +4389,7 @@ add_template_to_templates_menus (NautilusView *view,
g_free (uri);
g_free (action_name);
g_free (detailed_action_name);
+ g_object_unref (action);
g_object_unref (menu_item);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]