Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
thunar
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
Reuben Green
thunar
Commits
8b7950dc
Commit
8b7950dc
authored
Jun 22, 2020
by
Reuben Green
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update thunar-launcher.c
parent
0dd8cb22
Pipeline
#891
passed with stages
in 5 minutes and 51 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
thunar/thunar-launcher.c
thunar/thunar-launcher.c
+8
-8
No files found.
thunar/thunar-launcher.c
View file @
8b7950dc
...
...
@@ -1369,7 +1369,7 @@ thunar_launcher_append_menu_item (ThunarLauncher *launcher,
return
item
;
case
THUNAR_LAUNCHER_ACTION_CUT
:
focused_widget
=
thunar_launcher_get_focused_widget
();
focused_widget
=
thunar_launcher_get_focused_widget
();
if
(
focused_widget
&&
GTK_IS_EDITABLE
(
focused_widget
))
{
item
=
xfce_gtk_image_menu_item_new_from_icon_name
(
...
...
@@ -1394,13 +1394,13 @@ thunar_launcher_append_menu_item (ThunarLauncher *launcher,
return
item
;
case
THUNAR_LAUNCHER_ACTION_COPY
:
focused_widget
=
thunar_launcher_get_focused_widget
();
focused_widget
=
thunar_launcher_get_focused_widget
();
if
(
focused_widget
&&
GTK_IS_EDITABLE
(
focused_widget
))
{
item
=
xfce_gtk_image_menu_item_new_from_icon_name
(
action_entry
->
menu_item_label_text
,
N_
(
"Prepare text to be duplicated with the paste command"
),
// TODO: wording and translation
action_entry
->
accel_path
,
G_CALLBACK
(
gtk_editable_copy_clipboard
),
action_entry
->
accel_path
,
G_CALLBACK
(
gtk_editable_copy_clipboard
),
G_OBJECT
(
focused_widget
),
action_entry
->
menu_item_icon_name
,
menu
);
gtk_widget_set_sensitive
(
item
,
thunar_gtk_editable_can_copy
(
GTK_EDITABLE
(
focused_widget
)));
}
...
...
@@ -1427,13 +1427,13 @@ thunar_launcher_append_menu_item (ThunarLauncher *launcher,
return
item
;
case
THUNAR_LAUNCHER_ACTION_PASTE
:
focused_widget
=
thunar_launcher_get_focused_widget
();
focused_widget
=
thunar_launcher_get_focused_widget
();
if
(
focused_widget
&&
GTK_IS_EDITABLE
(
focused_widget
))
{
item
=
xfce_gtk_image_menu_item_new_from_icon_name
(
action_entry
->
menu_item_label_text
,
N_
(
"Move or copy text previously selected by a Cut or Copy command"
),
// TODO: wording and translation
action_entry
->
accel_path
,
G_CALLBACK
(
gtk_editable_paste_clipboard
),
action_entry
->
accel_path
,
G_CALLBACK
(
gtk_editable_paste_clipboard
),
G_OBJECT
(
focused_widget
),
action_entry
->
menu_item_icon_name
,
menu
);
gtk_widget_set_sensitive
(
item
,
thunar_gtk_editable_can_paste
(
GTK_EDITABLE
(
focused_widget
)));
}
...
...
@@ -1463,14 +1463,14 @@ thunar_launcher_get_focused_widget (void)
{
GtkApplication
*
app
;
GtkWindow
*
window
;
app
=
GTK_APPLICATION
(
g_application_get_default
());
app
=
GTK_APPLICATION
(
g_application_get_default
());
if
(
NULL
==
app
)
return
NULL
;
window
=
gtk_application_get_active_window
(
app
);
window
=
gtk_application_get_active_window
(
app
);
return
gtk_window_get_focus
(
window
);
}
...
...
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