Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
GNOME
gThumb
Commits
4b13c27a
Commit
4b13c27a
authored
Nov 11, 2019
by
Paolo Bacchilega
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shortcuts: renamed function for clarity
parent
3255347f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
gthumb/gth-shortcut.c
gthumb/gth-shortcut.c
+3
-3
gthumb/gth-shortcut.h
gthumb/gth-shortcut.h
+1
-1
gthumb/gth-window.c
gthumb/gth-window.c
+2
-2
No files found.
gthumb/gth-shortcut.c
View file @
4b13c27a
...
...
@@ -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
;
...
...
gthumb/gth-shortcut.h
View file @
4b13c27a
...
...
@@ -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
,
...
...
gthumb/gth-window.c
View file @
4b13c27a
...
...
@@ -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
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment