File tree 2 files changed +18
-10
lines changed
2 files changed +18
-10
lines changed Original file line number Diff line number Diff line change @@ -958,6 +958,7 @@ static void
958
958
copy_or_cut_files (FMTreeView * view ,
959
959
gboolean cut )
960
960
{
961
+ GtkClipboard * clipboard ;
961
962
char * status_string , * name ;
962
963
NemoClipboardInfo info ;
963
964
GtkTargetList * target_list ;
@@ -975,11 +976,14 @@ copy_or_cut_files (FMTreeView *view,
975
976
targets = gtk_target_table_new_from_list (target_list , & n_targets );
976
977
gtk_target_list_unref (target_list );
977
978
978
- gtk_clipboard_set_with_data (nemo_clipboard_get (GTK_WIDGET (view -> details -> tree_widget )),
979
- targets , n_targets ,
980
- nemo_get_clipboard_callback , nemo_clear_clipboard_callback ,
981
- NULL );
982
- gtk_target_table_free (targets , n_targets );
979
+ clipboard = nemo_clipboard_get (GTK_WIDGET (view ));
980
+
981
+ gtk_clipboard_set_with_data (clipboard ,
982
+ targets , n_targets ,
983
+ nemo_get_clipboard_callback , nemo_clear_clipboard_callback ,
984
+ NULL );
985
+ gtk_clipboard_set_can_store (clipboard , NULL , 0 );
986
+ gtk_target_table_free (targets , n_targets );
983
987
984
988
nemo_clipboard_monitor_set_clipboard_info (nemo_clipboard_monitor_get (),
985
989
& info );
Original file line number Diff line number Diff line change @@ -6742,6 +6742,7 @@ copy_or_cut_files (NemoView *view,
6742
6742
GList * clipboard_contents ,
6743
6743
gboolean cut )
6744
6744
{
6745
+ GtkClipboard * clipboard ;
6745
6746
int count ;
6746
6747
char * status_string , * name ;
6747
6748
NemoClipboardInfo info ;
@@ -6760,11 +6761,14 @@ copy_or_cut_files (NemoView *view,
6760
6761
targets = gtk_target_table_new_from_list (target_list , & n_targets );
6761
6762
gtk_target_list_unref (target_list );
6762
6763
6763
- gtk_clipboard_set_with_data (nemo_clipboard_get (GTK_WIDGET (view )),
6764
- targets , n_targets ,
6765
- nemo_get_clipboard_callback , nemo_clear_clipboard_callback ,
6766
- NULL );
6767
- gtk_target_table_free (targets , n_targets );
6764
+ clipboard = nemo_clipboard_get (GTK_WIDGET (view ));
6765
+
6766
+ gtk_clipboard_set_with_data (clipboard ,
6767
+ targets , n_targets ,
6768
+ nemo_get_clipboard_callback , nemo_clear_clipboard_callback ,
6769
+ NULL );
6770
+ gtk_clipboard_set_can_store (clipboard , NULL , 0 );
6771
+ gtk_target_table_free (targets , n_targets );
6768
6772
6769
6773
nemo_clipboard_monitor_set_clipboard_info (nemo_clipboard_monitor_get (), & info );
6770
6774
You can’t perform that action at this time.
0 commit comments