Commit 4b13c27a authored by Paolo Bacchilega's avatar Paolo Bacchilega

shortcuts: renamed function for clarity

parent 3255347f
......@@ -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;
......
......@@ -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,
......
......@@ -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);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment