[nautilus/wip/gaction_] view: code formatting
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus/wip/gaction_] view: code formatting
- Date: Wed, 21 Jan 2015 14:06:53 +0000 (UTC)
commit 329e5544218aab969d9a574074c44069dbaf6d02
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]