[gthumb] shortcuts: renamed function for clarity
- From: Paolo Bacchilega <paobac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gthumb] shortcuts: renamed function for clarity
- Date: Sun, 24 Nov 2019 12:29:46 +0000 (UTC)
commit 4b13c27a012f4bd43ece97dee50245c890b71997
Author: Paolo Bacchilega <paobac src gnome org>
Date: Mon Nov 11 17:27:55 2019 +0100
shortcuts: renamed function for clarity
gthumb/gth-shortcut.c | 6 +++---
gthumb/gth-shortcut.h | 2 +-
gthumb/gth-window.c | 4 ++--
3 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/gthumb/gth-shortcut.c b/gthumb/gth-shortcut.c
index aafa7c10..6681ee00 100644
--- a/gthumb/gth-shortcut.c
+++ b/gthumb/gth-shortcut.c
@@ -54,7 +54,7 @@ gth_shortcut_dup (const GthShortcut *shortcut)
new_shortcut->context = shortcut->context;
new_shortcut->category = shortcut->category;
new_shortcut->default_accelerator = g_strdup (shortcut->default_accelerator);
- gth_shortcut_set_name (new_shortcut, shortcut->accelerator);
+ gth_shortcut_set_accelerator (new_shortcut, shortcut->accelerator);
return new_shortcut;
}
@@ -73,8 +73,8 @@ gth_shortcut_free (GthShortcut *shortcut)
void
-gth_shortcut_set_name (GthShortcut *shortcut,
- const char *accelerator)
+gth_shortcut_set_accelerator (GthShortcut *shortcut,
+ const char *accelerator)
{
guint keyval;
GdkModifierType modifiers;
diff --git a/gthumb/gth-shortcut.h b/gthumb/gth-shortcut.h
index 2be111d0..fcf23644 100644
--- a/gthumb/gth-shortcut.h
+++ b/gthumb/gth-shortcut.h
@@ -49,7 +49,7 @@ void gth_shortcut_free (GthShortcut *shortcut);
void gth_shortcut_set_key (GthShortcut *shortcut,
guint keyval,
GdkModifierType modifiers);
-void gth_shortcut_set_name (GthShortcut *shortcut,
+void gth_shortcut_set_accelerator (GthShortcut *shortcut,
const char *name);
GthShortcut * gth_shortcut_array_find (GPtrArray *shortcuts_v,
int context,
diff --git a/gthumb/gth-window.c b/gthumb/gth-window.c
index c3b60077..8eda3551 100644
--- a/gthumb/gth-window.c
+++ b/gthumb/gth-window.c
@@ -734,7 +734,7 @@ gth_window_add_accelerators (GthWindow *window,
shortcut->action_name = g_strdup (acc->action_name);
shortcut->context = GTH_SHORTCUT_CONTEXT_INTERNAL;
shortcut->category = GTH_SHORTCUT_CATEGORY_HIDDEN;
- gth_shortcut_set_name (shortcut, acc->accelerator);
+ gth_shortcut_set_accelerator (shortcut, acc->accelerator);
_gth_window_add_shortcut (window, shortcut);
}
}
@@ -806,7 +806,7 @@ gth_window_add_shortcuts (GthWindow *window,
GthShortcut *new_shortcut;
new_shortcut = gth_shortcut_dup (shortcut);
- gth_shortcut_set_name (new_shortcut, shortcut->default_accelerator);
+ gth_shortcut_set_accelerator (new_shortcut, shortcut->default_accelerator);
_gth_window_add_shortcut (window, new_shortcut);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]