Commit 8b7950dc authored by Reuben Green's avatar Reuben Green

Update thunar-launcher.c

parent 0dd8cb22
Pipeline #891 passed with stages
in 5 minutes and 51 seconds
......@@ -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);
}
......
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