summaryrefslogtreecommitdiff
path: root/src/nautilus-application.c
diff options
context:
space:
mode:
authorErnestas Kulik <ernestask@src.gnome.org>2016-06-09 17:31:12 +0300
committerErnestas Kulik <ernestask@src.gnome.org>2016-06-24 20:58:31 +0300
commitd89c92af16b44964111a2c80d65f6d63bb152fcc (patch)
tree1b0335156ed25fffc02f3fde0c671c21634e6766 /src/nautilus-application.c
parent13938661a1114fc01b5282574012fb4ca219afc7 (diff)
downloadnautilus-d89c92af16b44964111a2c80d65f6d63bb152fcc.tar.gz
application: rename nautilus_application_add_accelerator()
nautilus_application_add_accelerator() is ambiguous in that it conveys that the function appends an accelerator to the list. This commit removes the ambiguity by renaming the function accordingly. https://bugzilla.gnome.org/show_bug.cgi?id=763948
Diffstat (limited to 'src/nautilus-application.c')
-rw-r--r--src/nautilus-application.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nautilus-application.c b/src/nautilus-application.c
index 6076215f3..989f31d72 100644
--- a/src/nautilus-application.c
+++ b/src/nautilus-application.c
@@ -81,7 +81,7 @@ typedef struct {
G_DEFINE_TYPE_WITH_PRIVATE (NautilusApplication, nautilus_application, GTK_TYPE_APPLICATION);
void
-nautilus_application_add_accelerator (GApplication *app,
+nautilus_application_set_accelerator (GApplication *app,
const gchar *action_name,
const gchar *accel)
{
@@ -801,7 +801,7 @@ nautilus_init_application_actions (NautilusApplication *app)
"show-hide-sidebar",
g_variant_new_boolean (show_sidebar));
- nautilus_application_add_accelerator (G_APPLICATION (app), "app.show-hide-sidebar", "F9");
+ nautilus_application_set_accelerator (G_APPLICATION (app), "app.show-hide-sidebar", "F9");
}
const GOptionEntry options[] = {